Skip to main content

Maps

import { invertMap, mapToObject, mapValues } from '@rtorcato/js-common/maps'

Exports

NameSummary
invertMapInverts a Map (swaps keys and values).
mapToObjectConverts a Map to an object.
mapValuesMaps the values of a Map using a function.
mergeMapsMerges two or more maps.
objectToMapConverts an object to a Map.