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.

58 lines (28 loc) 808 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [mapValuesToArray](./rc-js-util.mapvaluestoarray.md) ## mapValuesToArray() function Converts a `Map` into an `Array` of its values. **Signature:** ```typescript export declare function mapValuesToArray<TKey, TValue>(map: Map<TKey, TValue>): TValue[]; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> map </td><td> Map&lt;TKey, TValue&gt; </td><td> </td></tr> </tbody></table> **Returns:** TValue\[\] The values of `map`<!-- -->. ## Remarks See [mapValuesToArray()](./rc-js-util.mapvaluestoarray.md)<!-- -->.