nested

0.0.1-pre2 • Public • Published

Nested

Construct arbitrary complex datastructures that are lazily instantiated:

Arrays of hashes

var nested = require('nested');
// array of hashes
var ds = nested([ {} ]);
ds(0)['foo'] = 'bar';

Hashes of arrays

var nested = require('nested');
// array of hashes
var ds = nested({ of: [] });
ds('foo')[0] = 'bar';

See examples directory for more examples.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1-pre2
    7
    • latest

Version History

Package Sidebar

Install

npm i nested

Weekly Downloads

8

Version

0.0.1-pre2

License

none

Last publish

Collaborators

  • jeffsu