+31
-13
@@ -15,6 +15,9 @@ "use strict"; | ||
| return false; | ||
| Object.values(x).forEach(v => { | ||
| const values = Object.values(x); | ||
| if (values.length === 0) | ||
| return false; | ||
| for (const v of values) { | ||
| if (!(0, basictypes_1.isArray)(v)) | ||
| return false; | ||
| }); | ||
| } | ||
| return true; | ||
@@ -26,6 +29,9 @@ } | ||
| return false; | ||
| Object.values(x).forEach(v => { | ||
| const values = Object.values(x); | ||
| if (values.length === 0) | ||
| return false; | ||
| for (const v of values) { | ||
| if (!(0, basictypes_1.isBoolean)(v)) | ||
| return false; | ||
| }); | ||
| } | ||
| return true; | ||
@@ -37,6 +43,9 @@ } | ||
| return false; | ||
| Object.values(x).forEach(v => { | ||
| const values = Object.values(x); | ||
| if (values.length === 0) | ||
| return false; | ||
| for (const v of values) { | ||
| if (!(0, basictypes_1.isChar)(v)) | ||
| return false; | ||
| }); | ||
| } | ||
| return true; | ||
@@ -48,6 +57,9 @@ } | ||
| return false; | ||
| Object.values(x).forEach(v => { | ||
| const values = Object.values(x); | ||
| if (values.length === 0) | ||
| return false; | ||
| for (const v of values) { | ||
| if (!(0, basictypes_1.isNumber)(v)) | ||
| return false; | ||
| }); | ||
| } | ||
| return true; | ||
@@ -59,6 +71,9 @@ } | ||
| return false; | ||
| Object.values(x).forEach(v => { | ||
| if (!(0, basictypes_1.isArray)(v)) | ||
| const values = Object.values(x); | ||
| if (values.length === 0) | ||
| return false; | ||
| for (const v of values) { | ||
| if (!(0, basictypes_1.isObject)(v)) | ||
| return false; | ||
| }); | ||
| } | ||
| return true; | ||
@@ -70,8 +85,11 @@ } | ||
| return false; | ||
| Object.values(x).forEach(v => { | ||
| const values = Object.values(x); | ||
| if (values.length === 0) | ||
| return false; | ||
| for (const v of values) { | ||
| if (!(0, basictypes_1.isString)(v)) | ||
| return false; | ||
| }); | ||
| } | ||
| return true; | ||
| } | ||
| exports.isObjectOfStrings = isObjectOfStrings; |
+1
-1
| { | ||
| "name": "whichtype", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Whichtype is a small JavaScript library for checking the type of your variables.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+1
-1
@@ -80,3 +80,3 @@ | ||
| | `Description` | `Whichtype is a small JavaScript library for checking the type of your variables.` | | ||
| | `Version` | `1.0.1` | | ||
| | `Version` | `1.0.2` | | ||
| | `Author` | `iaseth` | | ||
@@ -83,0 +83,0 @@ | `Homepage` | `https://github.com/iaseth/whichtype` | |
29776
1.64%428
4.39%