Set and Match

We finish up the code to detect the fonts, weights, and styles used in our stylesheet. It’s straightforward work, with one exception: we really need a Set data structure, but JavaScript’s isn’t widely available yet. We fake it by using object keys instead.

comments powered by Disqus