fixed array paramter check
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Djeeberjr 2021-04-29 20:14:02 +02:00
parent c1c16cdfe0
commit 84521c5130

View File

@ -32,7 +32,7 @@ const nodeInit: NodeInitializer = (RED): void => {
if (typeof member === "function"){ if (typeof member === "function"){
let args: any[] = [] let args: any[] = []
if (msg.payload instanceof Array){ if (Array.isArray(msg.payload)){
args = msg.payload args = msg.payload
}else{ }else{
args = [msg.payload] args = [msg.payload]