Interface ReadonlyCharMap<T>

Type Parameters

  • T

Hierarchy

Implemented by

Properties

isEmpty: boolean

Methods

  • Invokes the given callback for every item of the character map.

    This method is implemented more efficiently than other iterator based methods, so chose forEach where every possible.

    Parameters

    Returns void

  • Returns the value associated with the given character of undefined if the character is not key in the map.

    Parameters

    Returns undefined | T

  • Returns whether the given character is a key in the map.

    Parameters

    Returns boolean

  • Returns whether every character in the given range is a key in the map.

    This is equivalent to: [...chars].every(char => this.has(char)).

    Parameters

    Returns boolean

  • Returns whether some character in the given range is a key in the map.

    This is equivalent to: [...chars].some(char => this.has(char)).

    Parameters

    Returns boolean

  • Returns a mapping from the values of this map to its keys.

    Parameters

    Returns Map<T, CharSet>

  • Returns Iterable<T>