Documentation for node-red internals

Hello all

I've come across a situation where RED.nodes.getNode(nodeID) is returning null for a nodeID that is known to be correct.

I was looking for some documentation which might tell me more about the method and what its return values should be in various circumstances; but am drawing a blank. (as of yet, I have not even found where the method is in the code-base).

Can anyone point me in the right direction?

thanks
Justin

https://nodered.org/docs/api/

If something isn't documented, it is to be considered internal/unstable.