Home Manual Reference Source

src/toMap.js

/**
 * Instantiate a map from a mapping.
 *
 * @param {Iterable} mapping The input mapping.
 * @return {Map} The output map.
 */
const toMap = (mapping) => new Map(mapping);
export default toMap;