UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

13 lines 275 B
/** * @public * Converts a `Map` into an `Array` of its values. * * @returns The values of `map`. * * @remarks * See {@link mapValuesToArray}. */ export function mapValuesToArray<TKey, TValue>(map: Map<TKey, TValue>): TValue[] { return Array.from(map.values()); }