tree-math

0.0.22 • Public • Published

node-tree-math

Store, increment && manipulate counts in a tree structure.

Installation:

npm install tree-math

Usage

var tree = require('tree-math');

var x =
{ y:
  { z: 99
  , zz:27
  }
  w:4
};

tree.setPath(x,[3,'red','bulls'], 5);
tree.getPath(x,[3,'red','bulls']);
tree.incrementPath(x,[3,'red','bulls'], 1);
tree.find(x,function(path,val){console.log(path,'->',val)});
tree.ksort(x)

Build Status

Readme

Keywords

none

Package Sidebar

Install

npm i tree-math

Weekly Downloads

0

Version

0.0.22

License

BSD

Unpacked Size

13.9 kB

Total Files

30

Last publish

Collaborators

  • bitdivine