getDictionaryItems()function
getDictionaryItems(input: ImmutableDictionary<T>): readonly DictionaryItem<T>[]
getDictionaryItems(input: PossibleDictionary<T>): Iterable<DictionaryItem<T>>
| Param | Type | |
|---|---|---|
input | ImmutableDictionary<T> | The dictionary or iterable set of key/value entry tuples to read. required |
input | PossibleDictionary<T> | Value that can be converted to a dictionary object. required |
| Return | |
|---|---|
readonly DictionaryItem<T>[] | Iterable set of key/value entry tuples for the dictionary. |
Iterable<DictionaryItem<T>> |
Turn a dictionary object into a set of props.
Examples
getDictionaryItems({ a: 1, b: 2 }); // [["a", 1], ["b", 2]]