getDataProps()function
getDataProps(data: T): ImmutableArray<DataProp<T>>
getDataProps(data: T | Partial<T>): ImmutableArray<DataProp<T>>
| Param | Type | |
|---|---|---|
data | T | The data object to read. required |
data | TPartial<T> | required |
| Return | |
|---|---|
ImmutableArray<DataProp<T>> | An immutable array of [key, value] prop tuples. |
ImmutableArray<DataProp<T>> | Immutable array: an array that cannot be changed. |
Get the props of a data object as a set of entries.
Examples
getDataProps({ a: 1, b: 2 }) // [["a", 1], ["b", 2]]