UNPKG

obj-chain-core

Version:

fluent chaining for obj with dot-prop access

12 lines (9 loc) 378 B
const ObjChain = require('../') const pkg = require('../package.json') const chain = new ObjChain(pkg, ['dotprop', 'json']) // .parse() // will be done automatically, is optional .set('eh', ['some values']) // also as .update .del('eh') // also as .delete, .remove .setIfNotEmpty('eh', ['some other values']) .get('eh') require('fliplog').quick(chain)