datadata.arrayInsert

Insert Array Item

Insert one item into an array at a specific index.

Video tutorial

23

Watch how to configure and run the data.arrayInsert node in a real LaiCai Flow workflow.

Node tutorial: Insert Array Item
Watch on YouTube

Inputs

3
InputValue typeRequirementAccepted sources
ArrayarraySource array to insert into. Value type: array. Must come from a previous node output such as data.items or data.results.arrayRequirednodeOutput
IndexindexZero-based insert index. Value type: number. Supports literal number or number-valued node output.numberRequiredliteralnodeOutput
ItemitemItem to insert. Value type: any JSON-compatible value. Supports literal value or previous node output.anyRequiredliteralnodeOutput

Outputs

3
Output pathValue typeCoordinate space
data.itemsarray
data.lengthnumber
data.indexnumber

Runtime support

DesktopSupported
Android AgentSupported