Module: @lumjs/core/maps

Map object helper functions.

Source:

Methods

(static) mapOf(input) → {Map}

Build a Map instance out of various types of objects.

Parameters:
Name Type Description
input object

An object to be converted into a Map.

Supported object types:

  • Array, Map, or any other object with an entries() method.
  • Implements Iterable interface ([Symbol.iterator]).
  • Implements Iterator interface (next()).
  • Anything other object we'll use all enumerable properties.
Source:
Returns:
Type
Map