0.0.22 • Published 5 years ago

tree-math v0.0.22

Weekly downloads
12
License
BSD
Repository
github
Last release
5 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

5 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

10 years ago