Array.create and Function.create

T.J. Crowder tj.crowder at
Thu Jan 10 19:04:18 UTC 2019

On Thu, Jan 10, 2019 at 1:54 PM Augusto Moura
<augusto.borgesm at> wrote:
> If you don't want the iterable features neither the own properties,
> what're the benefits over a object indexed by numbers `const o =
> Object.create(null); o[0] = 12; ...`?


And re functions, using them as state containers without their usual
features seems like a bad idea^H^H^H^H^H^H^H^H edge case best handled
by `setPrototypeOf` and `delete`. :-)

-- T.J. Crowder

More information about the es-discuss mailing list