js-util

Home > rc-js-util > dictionaryPairs

dictionaryPairs() function

converts objects into key value pair tuples.

Signature:

export declare function dictionaryPairs<TKey extends string | number | symbol, TValue>(dictionary: {
    [index in TKey]: TValue;
}): [TKey, TValue][];

Parameters

Parameter Type Description
dictionary { [index in TKey]: TValue; }  

Returns:

[TKey, TValue][]

Remarks

See dictionaryPairs().