DEV Community

Discussion on: JS Test #7: Is this an array?

Collapse
shashankgopannagari profile image
Shashank

Object.prototype.toString.call([]).slice(8,-1);
will also work