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 (29 loc) 856 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; [dictionaryPairs](./rc-js-util.dictionarypairs.md) ## dictionaryPairs() function converts objects into key value pair tuples. **Signature:** ```typescript export declare function dictionaryPairs<TKey extends string | number | symbol, TValue>(dictionary: { [index in TKey]: TValue; }): [TKey, TValue][]; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> dictionary </td><td> { \[index in TKey\]: TValue; } </td><td> </td></tr> </tbody></table> **Returns:** \[TKey, TValue\]\[\] ## Remarks See [dictionaryPairs()](./rc-js-util.dictionarypairs.md)<!-- -->.