mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
simplify tweet node object check for humans
This commit is contained in:
parent
be1e89bf31
commit
35aed787ae
@ -26,7 +26,8 @@ module.exports = function(RED) {
|
|||||||
var node = this;
|
var node = this;
|
||||||
|
|
||||||
var isObject = function(a) {
|
var isObject = function(a) {
|
||||||
return (!!a) && (a.constructor == Object);
|
if ((typeof(a) === "object") && (!Buffer.isBuffer(a)) && (!Array.isArray(a))) { return true; }
|
||||||
|
else { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
this.on("input",function(msg) {
|
this.on("input",function(msg) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-dweetio",
|
"name" : "node-red-node-dweetio",
|
||||||
"version" : "0.0.9",
|
"version" : "0.0.10",
|
||||||
"description" : "A Node-RED node to send and receive simple dweets",
|
"description" : "A Node-RED node to send and receive simple dweets",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"node-dweetio" : "0.0.11"
|
"node-dweetio" : "0.0.11"
|
||||||
|
Loading…
Reference in New Issue
Block a user