Skip to content

bitdivine/node-tree-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published