next-sets
Set a lot value value.
installation
npm install -S @jswork/next-sets
usage
import '@jswork/next-sets';
const obj = {};
// set value to obj
nx.sets(obj, {
testA: 'A1',
testB: 'B1',
testC: 'C1',
testD: 'D1',
'path.key1.a.b': 'b-value1'
});
// set values to nx
nx.sets({
a: 1,
b: 2,
c: 3
})
license
Code released under the MIT license.