Array

action_array · action · Data & Transform · Available · v1.0.0

Description

Collection Swiss-army knife: eight array operations in pure JavaScript, all dot-path aware for nested fields — unique, sort, slice, flatten, chunk, shuffle, sample and reverse. Replaces the n8n Item Lists node and most Code-node manipulations.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
operation
Operazione
enum
uniquesortgroupchunkflattenpickslicereverse
yesuniqueCosa fare con l'array. Ogni operazione mostra solo i suoi parametri.
items
Array
expressionnoinputL'array su cui operare. Vuoto = usa l'input del nodo (array o stringa JSON).
key
Campo chiave (dot-path)
stringno
es. cliente.email
Campo su cui operare (annidato con il punto). UNIQUE/SORT senza chiave usano il valore intero.
direction
Direzione
enum
ascdesc
noasc
size
Dimensione blocco
numberno10Quanti elementi per blocco.
depth
Profondità
numberno1Livelli di annidamento da appiattire.
fields
Campi da tenere
stringno
nome, email, cliente.città
Elenco separato da virgole dei campi (dot-path) da proiettare.
start
Da indice
numberno0Indice iniziale (negativo = dalla fine).
end
A indice (escluso)
numbernoIndice finale escluso. Vuoto = fino alla fine.

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • default

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-action_array-1",
  "defId": "action_array",
  "label": "Array",
  "config": {
    "operation": "unique",
    "items": "input",
    "direction": "asc",
    "size": 10,
    "depth": 1,
    "start": 0
  }
}

🔗 Related nodes in the same category

Ready to use Array?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes