Hacker News new | past | comments | ask | show | jobs | submit login

Detecting that a value is an Object as opposed to an Array/Arguments/etc (or more generally, reading the StringTag of a value) still requires a toString.call(value) AFAIK.

This is still used a lot in recursive polymorphic code like virtual dom, AST traversal, deep cloning, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: