Re:How JavaScript Works: deep dive into call, apply, and bind
by lhorie on Friday July 09, 2021 @09:00PM
(#27790183)
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.
This is still used a lot in recursive polymorphic code like virtual dom, AST traversal, deep cloning, etc.