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.

17 lines 515 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mapEntriesToArray = void 0; /** * @public * Converts a `Map` into an `Array` of its key value pairs. * * @returns An array of tuples, the first value corresponding to the key and the second to the value. * * @remarks * See {@link mapEntriesToArray}. */ function mapEntriesToArray(map) { return Array.from(map.entries()); } exports.mapEntriesToArray = mapEntriesToArray; //# sourceMappingURL=map-entries-to-array.js.map