Can someone help me on how to use filter function from $input.all?
I created this example. Code 2 has the correct values return. Code 1 node not if i use $input.all().
How to use filter by using $input.all() from previous node?
Can someone help me on how to use filter function from $input.all?
I created this example. Code 2 has the correct values return. Code 1 node not if i use $input.all().
How to use filter by using $input.all() from previous node?
const arr = Array.from($input.all());
const newArr = arr.filter(object => {
return object.json["id"] !== 3;
});
return newArr;
Thank you very much, it works!
glad to help
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.