3 ms·
> because you can't be bothered to write "x.toString() === '[object Array]'" ([1,2,3]).toString() => "1,2,3"
by bentlegen 11y ago
> because you can't be bothered to write "x.toString() === '[object Array]'"
([1,2,3]).toString() => "1,2,3"
- orf 11y agoMy bad, '({}).toString.call([1,2,3])'. Because type introspection is so ugly in JS, but so needed, that it's hidden behind 'require('is-array')' to make it palatable. Ridiculous.