Class: Set

lunr.Set()

new Set()

A lunr set.

Source:

Members

(static, readonly) complete :lunr.Set

A complete set that contains all elements.

Type:
Source:

(static, readonly) empty :lunr.Set

An empty set that contains no elements.

Type:
Source:

Methods

contains(object) → {boolean}

Returns true if this set contains the specified object.

Parameters:
Name Type Description
object object

Object whose presence in this set is to be tested.

Source:
Returns:
  • True if this set contains the specified object.
Type
boolean

intersect(other) → {lunr.Set}

Returns a new set containing only the elements that are present in both this set and the specified set.

Parameters:
Name Type Description
other lunr.Set

set to intersect with this set.

Source:
Returns:

a new set that is the intersection of this and the specified set.

Type
lunr.Set

union(other) → {lunr.Set}

Returns a new set combining the elements of this and the specified set.

Parameters:
Name Type Description
other lunr.Set

set to union with this set.

Source:
Returns:

a new set that is the union of this and the specified set.

Type
lunr.Set