n8n Β· Arrays

n8n map()

Returns a new array with the result of the function for every element.

Syntax

array.map(item => value)

Example

$json.users.map(u => u.email)

Result: [[email protected], [email protected]]

Equivalent in Make.com

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

Practice map() β€” free interactive labs

More n8n arrays functions