ExactIndex is a simple index that allows you to store a value and retrieve it by key. The key must be an exact match.
var index = new ExactIndex();index.set("foo", 1);index.get("foo"); // [1]index.get("bar"); // undefinedindex.set("foo", 2);index.get("foo"); // [2]index.remove("foo");index.get("foo"); // undefinedindex.set("foo", 1);index.clear();index.get("foo"); // undefined
The field to index on
Private
Generated using TypeDoc
Classdesc
ExactIndex is a simple index that allows you to store a value and retrieve it by key. The key must be an exact match.
Example
Param
The field to index on
Returns