Skip to main content

spread

Spread values into an object or list

Written by Holly Conrad Smith

Use this when you want to merge values into an object or list within a flow, for example combining properties from multiple sources into a single output object.

Inputs

Name

Abbreviation

Type

Access

Description

A

A

Any

Item

The object or list to spread

B

B

Any

Item

The value to spread into the object or list

Outputs

Name

Abbreviation

Type

Access

Description

Result

R

Any

Item

The spread object or list

How-to

This is similar to construct object, except that the key-value pair is added to the existing object rather than appended to create a new object.

  1. Feed in an existing object.

    This could be from a panel or the result of another node

  2. Feed in a key-value pair to add to the object

    This could be from a panel or the result of another node

  3. The result is the object and the additional key-value pair wrapped as an object

Did this answer your question?