Creating an array of key-value pairs from the specified object.
For example, let's say you have an object that looks like this:
{ "foo": "hello", "bar": "world"}
It will be converted to an array whose objects will pair data from the source object and their designations:
[ { "key": "foo", "value": "hello" }, { "key": "bar", "value": "world" }]
Name | Type | Description |
---|---|---|
type * | "helper.object2entries" | Set component type. |
data | any | The object to convert. |
Last updated: March 29, 2023