Skip to content

Flat-copy an object's keys to a new one that has no prototype.

Notifications You must be signed in to change notification settings

mk-pmb/nullify-obj-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

nullify-obj

Flat-copy an object's keys to a new one that has no prototype.

WYSIWYG:

'use strict';
module.exports = function (o) { return Object.assign(Object.create(null), o); };

 

License

ISC

About

Flat-copy an object's keys to a new one that has no prototype.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published