autotree

0.0.2 • Public • Published

autotree

A tree-like container which never fails to return a branch.

Usage

var AutoTree = require('autotree');
var tree = new AutoTree();
tree.get(['foo', 'bar', 'baz']).push(1, 2, 3);
console.log(tree.get(['foo', 'bar', 'baz']));
// => [1, 2, 3]
tree.get(['foo', 'bar', 'baz']).splice(0, 3);
tree.trim(['foo', 'bar', 'baz']); // <= since the array is now empty, this will free up any used memory

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    0

Package Sidebar

Install

npm i autotree

Weekly Downloads

2

Version

0.0.2

License

BSD

Last publish

Collaborators

  • einaros