Indexer

Indexer object

Methods

build

build(elements, itsIndex)

Incrementally builds index for each element/itsIndex combination passed.

Parameters
Name Type Description
elements
itsIndex

result

result() → {Object}

Used to access the index. This index is in a form of an object that contains each element as key. The value of each key is an array containing all index positions to the element in question. Note these index positions are nothing but each itsIndex value passed for the element.

Returns
Type
Object