DEV Community

Discussion on: Acing the JavaScript Interview: top questions explained

Collapse
 
campbellgoe profile image
George O. E. Campbell

For the 'Array or not?' section, you can instead use the built-in Array.isArray() method, rather than parsing the output of object.toString().