n8n Β· Arrays

n8n find()

Returns the first element that matches the condition, or undefined if none does.

Syntax

array.find(item => condition)

Example

$json.agents.find(a => a.id === 2).email

Result: [email protected]

Equivalent in Make.com

map() β€” map(array; key; [filter key]; [filter values])

Practice find() β€” free interactive labs

More n8n arrays functions