An open API service indexing awesome lists of open source software.

https://github.com/othree/immutable-quadtree-js

Immutable Quadtree in JS
https://github.com/othree/immutable-quadtree-js

Last synced: over 1 year ago
JSON representation

Immutable Quadtree in JS

Awesome Lists containing this project

README

          

# immutable-quadtree-js

[![Build Status](https://travis-ci.org/othree/immutable-quadtree-js.svg?branch=master)](https://travis-ci.org/othree/immutable-quadtree-js)

Immutable Quadtree in JS

## Example

var a = new ImmutableQuadTree(4);
var b = a.add('0000', {_id: 'ABC'});
var c = b.add('0000', {_id: 'ABC'});
var d = c.add('0010', {_id: 'BBB'});

a === b; // false
b === c; // true
c === d; // false

var e = d.keep('001');