tobj

0.1.1 • Public • Published

tobj

Example:

const {T} = require('tobj')
 
const myTree = {}
 
const t = T(myTree)
// myTree => {}
 
const child1 = t('a')('b')('c')('d')('e')
// myTree => {}
 
child1.set(4)
// myTree => { a: { b: { c: { d: { e: 4 } } } } }

Readme

Keywords

Package Sidebar

Install

npm i tobj

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • jondotsoy