1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

@ -72,7 +72,7 @@ module.exports = function(RED) {
return ((min <= index) && (index <= max)); return ((min <= index) && (index <= max));
}, },
'hask': function(a, b) { '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); }, 'jsonata_exp': function(a, b) { return (b === true); },
'else': function(a) { return a === true; } 'else': function(a) { return a === true; }