js-util

Home > rc-js-util > _Dictionary

_Dictionary class

Utilities for ‘dictionaries’, i.e. { [index: string]: any }.

Signature:

export declare class _Dictionary 

Properties

Property Modifiers Type Description
cloneExtend static typeof dictionaryCloneExtend Creates an object which is extended sequentially by two additional objects.
extend static typeof dictionaryExtend Modifies an object to include the keys and values of another.
forEach static typeof dictionaryForEach Like Array.forEach but for arbitrary objects.
pairs static typeof dictionaryPairs converts objects into key value pair tuples.
push static typeof dictionaryPush 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.
values static typeof dictionaryValues Equivalent to Object.values.