Technically it's:
flow.set(msg.payload, undefined);
global.set(msg.payload, undefined);
Omitting the undefined
is fine, but you may prefer to be explicit so it's clear.
Technically it's:
flow.set(msg.payload, undefined);
global.set(msg.payload, undefined);
Omitting the undefined
is fine, but you may prefer to be explicit so it's clear.