Does anyone know of a simple module on npm that sets the proto of an object to null? Sick of having to use Object#hasOwnProperty.
-
-
-
@jedschmidt@sebmck@eaf4 it'd be great to have a Map literal syntax. - 12 more replies
New conversation -
-
New conversation
-
-
New conversation
-
-
-
@sebmck here your module: `const N = o => Object.create(null, Object.getOwnPropertyDescriptors(o));` via https://github.com/tc39/proposal-object-getownpropertydescriptors … /@eaf4 -
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 