Update packages/node_modules/@node-red/nodes/core/logic/10-switch.js

Co-Authored-By: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
Dave Conway-Jones 2019-07-10 10:01:09 +01:00 committed by GitHub
parent a2dedba0ef
commit 93ad9a3aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ module.exports = function(RED) {
return ((min <= index) && (index <= max));
},
'hask': function(a, b) {
if (typeof b !== "object" ) { return a.hasOwnProperty(b+""); }
return (typeof b !== "object" ) && a.hasOwnProperty(b+"");
},
'jsonata_exp': function(a, b) { return (b === true); },
'else': function(a) { return a === true; }