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.

177 lines (79 loc) 2.06 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [\_Dictionary](./rc-js-util._dictionary.md) ## \_Dictionary class Utilities for 'dictionaries', i.e. { \[index: string\]: any }<!-- -->. **Signature:** ```typescript export declare class _Dictionary ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [cloneExtend](./rc-js-util._dictionary.cloneextend.md) </td><td> `static` `readonly` </td><td> typeof dictionaryCloneExtend </td><td> Creates an object which is extended sequentially by two additional objects. </td></tr> <tr><td> [forEach](./rc-js-util._dictionary.foreach.md) </td><td> `static` `readonly` </td><td> typeof dictionaryForEach </td><td> Like `Array.forEach` but for arbitrary objects. </td></tr> <tr><td> [overwrite](./rc-js-util._dictionary.overwrite.md) </td><td> `static` `readonly` </td><td> typeof dictionaryOverwrite </td><td> Modifies an object to include the keys and values of another. </td></tr> <tr><td> [pairs](./rc-js-util._dictionary.pairs.md) </td><td> `static` `readonly` </td><td> typeof dictionaryPairs </td><td> converts objects into key value pair tuples. </td></tr> <tr><td> [push](./rc-js-util._dictionary.push.md) </td><td> `static` `readonly` </td><td> typeof dictionaryPush </td><td> Used with dictionary that store arrays. Where an array exists for a given key the value will be appended to that array, otherwise a new array will be created containing the value. </td></tr> <tr><td> [values](./rc-js-util._dictionary.values.md) </td><td> `static` `readonly` </td><td> typeof dictionaryValues </td><td> Equivalent to Object.values. </td></tr> </tbody></table>