git ssb

0+

wanderer🌟 / referenceMap



Tree: f7792c89da60d7cb1f331f20d26af148789f2e68

Files: f7792c89da60d7cb1f331f20d26af148789f2e68 / README.md

2163 bytesRaw

NPM Package
Build Status
Coverage Status

js-standard-style

install

npm install referanceMap

SYNOPSIS

This is a simple determinstic map that maps POJOs to an integer.

API

constructor

index.js:5-7

Handle mapping arbitary JS object to ints

add

index.js:15-17

Adds an object to the referance map returning an int to be used as a referance

Parameters

Returns integer

get

index.js:24-30

gets a POJO given a refernce as an int

Parameters

Returns any

delete

index.js:37-39

deletes an object given a referance as an int

Parameters

Returns boolean whether or not the object was deleted

clear

index.js:44-46

clears the referance map of a objects

LICENSE

MPL-2.0)

Built with git-ssb-web