Re:I will pay you cash to delete your NPM module
by zirak on Wednesday November 17, 2021 @02:50PM
(#29258022)
The constructor check would unfortunately not work for cross-frame arrays. Each frame has its own global object, with its own Array constructor. So:
Stringifying the constructor works even for cross-frame values:
These days though, `Array.isArray` is the right thing to do, available since roughly 2010.
[ Parent
| on HN ]
There are no comments on this comment yet.