nor-data

Helpers for dealing with JavaScript data

nor-data

Helpers for dealing with JavaScript data

npm install nor-data

Declare it:

var copy = require('nor-data').copy;

And use it:

var obj = {"foo": 10};
var obj2 = copy(obj);
obj2.foo = 100;
assert( obj.foo !== obj2.foo );
npm install -d
npm run lint
npm run test