Does an equivalent node exist / what should I call it

Hi, sorry I am a bit late. There maybe something useful in this https://discourse.nodered.org/t/message-debug-function-node/53261
The code in the function node is very simple to understand.