0.0.22 • Published 6 years ago

tree-math v0.0.22

Weekly downloads
12
License
BSD
Repository
github
Last release
6 years ago

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

0.0.22

6 years ago

0.0.21

10 years ago

0.0.20

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago