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.

Readme

Keywords

none

Package Sidebar

Install

npm i nested

Weekly Downloads

3

Version

0.0.1-pre2

License

none

Last publish

Collaborators

  • jeffsu