Hai.

Why not Symbol.isArray?

> To me the most interesting question is how to create objects that get
JSON-stringified as [], not {}. Some sort of symbol-based mechanism makes
sense for that, IMO...

toJSON method.

`JSON.stringify({toJSON: () => [2,3,4,5]})`
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to