Categorizing values in JavaScript

This post examines four ways in which values can be categorized in JavaScript: via the hidden property [[Class]], via the typeof operator, via the instanceof operator and via the function Array.isArray(). We'll also look at the prototype objects of built-in constructors, which produce unexpected categorization results.

Continue here >