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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i nested

      Weekly Downloads

      18

      Version

      0.0.1-pre2

      License

      none

      Last publish

      Collaborators

      • jeffsu