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 52460d9 commit 79abe65Copy full SHA for 79abe65
lib/validator.js
@@ -29,6 +29,10 @@ validator.isArray = function(value) {
29
return Array.isArray(value);
30
};
31
32
+validator.isObject = function(value) {
33
+ return Object.prototype.toString.call(value) === '[object Object]';
34
+};
35
+
36
validator.isBoolean = function(value) {
37
return typeof value === 'boolean';
38
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "nodee-utils",
3
"preferGlobal": false,
4
- "version": "1.2.3",
+ "version": "1.2.4",
5
"author": "NODEE - Matus Szabo <[email protected]>",
6
"description": "set of useful helpers",
7
"main": "./index.js",
0 commit comments