UPDATE: there's now a node for this @ https://www.npmjs.org/package/node-red-contrib-splitter
An array iterator. This is a 'drop-in'-flow consisting of 2 machines, which allows easy iteration over an array, and converts them to separate payloads:
Just send the following payload to the 'for each item'-machine:
[{"foo":1},{"bar":2}];
and connect the output of the 'for each item'-machine to a debug-console. By doing so, 2 separate payloads will arrive:
payload: {"foo":1}
payload: {"foo":2}
you can modify the loop behavior (break e.g.) by editing the condition in the '++' machine
this method is similar like this and this approach. However, this variation focuses on portability and simplicity.