n8n LabIntermediate

Filter Active Users in n8n Code Node

An API returns a list of users. You only want to pass forward users where 'status' is equal to 'active'.

Live Execution Simulator Idle
πŸ“₯
Incoming Data
βš™οΈ
n8n Node
🎯
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.

Incoming Payload / Data:

[
  { "name": "David", "status": "active" },
  { "name": "Emma", "status": "inactive" }
]
items.filter(item => )

βš™οΈ Your expression is executed against test data β€” any correct solution passes. +20 XP

Related labs