We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1ec2a0 commit 7f3ed66Copy full SHA for 7f3ed66
src/main.js
@@ -128,7 +128,7 @@ module.exports = (RED) => {
128
return;
129
}
130
131
- const isAnObject = (value) => (value && typeof value === 'object' && (value.__proto__ == null || value.__proto__ === Object.prototype));
+ const isAnObject = value => value === Object(value) && !Array.isArray(value);
132
if (msg.payload !== undefined && !isAnObject(msg.payload)) {
133
this.error('msg.payload should be an object containing the query arguments.');
134
0 commit comments