helper.object2entries

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"
  }
]

View example in the sandbox.

Component properties

NameTypeDescription
type*"helper.object2entries"

Set component type

dataany

The object to convert.