+3
-0
@@ -9,1 +9,4 @@ export declare function isEmptyArray(x: any): boolean; | ||
| export declare function isArrayOfStrings(x: any): boolean; | ||
| export declare const isArray2D: typeof isArrayOfArrays; | ||
| export declare const isGrid: typeof isArrayOfArrays; | ||
| export declare const isTable: typeof isArrayOfObjects; |
+4
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isArrayOfStrings = exports.isArrayOfObjects = exports.isArrayOfNumbers = exports.isArrayOfChars = exports.isArrayOfBooleans = exports.isArrayOfArrays = exports.isNonEmptyArray = exports.isEmptyArray = void 0; | ||
| exports.isTable = exports.isGrid = exports.isArray2D = exports.isArrayOfStrings = exports.isArrayOfObjects = exports.isArrayOfNumbers = exports.isArrayOfChars = exports.isArrayOfBooleans = exports.isArrayOfArrays = exports.isNonEmptyArray = exports.isEmptyArray = void 0; | ||
| const basictypes_1 = require("./basictypes"); | ||
@@ -91,1 +91,4 @@ function isEmptyArray(x) { | ||
| exports.isArrayOfStrings = isArrayOfStrings; | ||
| exports.isArray2D = isArrayOfArrays; | ||
| exports.isGrid = isArrayOfArrays; | ||
| exports.isTable = isArrayOfObjects; |
+2
-2
| export { isArray, isBoolean, isChar, isNumber, isObject, isString, isNull, isUndefined, isPrimitive, isReference, } from "./basictypes"; | ||
| export { isNotArray, isNotBoolean, isNotChar, isNotNumber, isNotObject, isNotString, isNotNull, isNotUndefined, isNotPrimitive, isNotReference, } from './inverses'; | ||
| export { hasAColon, isNumeric, isArrayIndex, isObjectKey, isFlag, isNotFlag, isSingleFlag, isDoubleFlag, isTripleFlag, } from './args'; | ||
| export { isEmptyArray, isNonEmptyArray, isArrayOfArrays, isArrayOfBooleans, isArrayOfChars, isArrayOfNumbers, isArrayOfObjects, isArrayOfStrings, } from './array'; | ||
| export { isEmptyObject, isNonEmptyObject, isObjectOfArrays, isObjectOfBooleans, isObjectOfChars, isObjectOfNumbers, isObjectOfObjects, isObjectOfStrings, } from './object'; | ||
| export { isEmptyArray, isNonEmptyArray, isArrayOfArrays, isArrayOfBooleans, isArrayOfChars, isArrayOfNumbers, isArrayOfObjects, isArrayOfStrings, isArray2D, isGrid, isTable, } from './array'; | ||
| export { isEmptyObject, isNonEmptyObject, isObjectOfArrays, isObjectOfBooleans, isObjectOfChars, isObjectOfNumbers, isObjectOfObjects, isObjectOfStrings, isHashTable, isObject2D, } from './object'; | ||
| export { isLowerCase, isUpperCase, } from './strings'; | ||
| export { isHttp, isHttps, isURL, } from './urls'; |
+7
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isURL = exports.isHttps = exports.isHttp = exports.isUpperCase = exports.isLowerCase = exports.isObjectOfStrings = exports.isObjectOfObjects = exports.isObjectOfNumbers = exports.isObjectOfChars = exports.isObjectOfBooleans = exports.isObjectOfArrays = exports.isNonEmptyObject = exports.isEmptyObject = exports.isArrayOfStrings = exports.isArrayOfObjects = exports.isArrayOfNumbers = exports.isArrayOfChars = exports.isArrayOfBooleans = exports.isArrayOfArrays = exports.isNonEmptyArray = exports.isEmptyArray = exports.isTripleFlag = exports.isDoubleFlag = exports.isSingleFlag = exports.isNotFlag = exports.isFlag = exports.isObjectKey = exports.isArrayIndex = exports.isNumeric = exports.hasAColon = exports.isNotReference = exports.isNotPrimitive = exports.isNotUndefined = exports.isNotNull = exports.isNotString = exports.isNotObject = exports.isNotNumber = exports.isNotChar = exports.isNotBoolean = exports.isNotArray = exports.isReference = exports.isPrimitive = exports.isUndefined = exports.isNull = exports.isString = exports.isObject = exports.isNumber = exports.isChar = exports.isBoolean = exports.isArray = void 0; | ||
| exports.isObject2D = exports.isHashTable = exports.isObjectOfStrings = exports.isObjectOfObjects = exports.isObjectOfNumbers = exports.isObjectOfChars = exports.isObjectOfBooleans = exports.isObjectOfArrays = exports.isNonEmptyObject = exports.isEmptyObject = exports.isTable = exports.isGrid = exports.isArray2D = exports.isArrayOfStrings = exports.isArrayOfObjects = exports.isArrayOfNumbers = exports.isArrayOfChars = exports.isArrayOfBooleans = exports.isArrayOfArrays = exports.isNonEmptyArray = exports.isEmptyArray = exports.isTripleFlag = exports.isDoubleFlag = exports.isSingleFlag = exports.isNotFlag = exports.isFlag = exports.isObjectKey = exports.isArrayIndex = exports.isNumeric = exports.hasAColon = exports.isNotReference = exports.isNotPrimitive = exports.isNotUndefined = exports.isNotNull = exports.isNotString = exports.isNotObject = exports.isNotNumber = exports.isNotChar = exports.isNotBoolean = exports.isNotArray = exports.isReference = exports.isPrimitive = exports.isUndefined = exports.isNull = exports.isString = exports.isObject = exports.isNumber = exports.isChar = exports.isBoolean = exports.isArray = void 0; | ||
| exports.isURL = exports.isHttps = exports.isHttp = exports.isUpperCase = exports.isLowerCase = void 0; | ||
| var basictypes_1 = require("./basictypes"); | ||
@@ -45,2 +46,5 @@ Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return basictypes_1.isArray; } }); | ||
| Object.defineProperty(exports, "isArrayOfStrings", { enumerable: true, get: function () { return array_1.isArrayOfStrings; } }); | ||
| Object.defineProperty(exports, "isArray2D", { enumerable: true, get: function () { return array_1.isArray2D; } }); | ||
| Object.defineProperty(exports, "isGrid", { enumerable: true, get: function () { return array_1.isGrid; } }); | ||
| Object.defineProperty(exports, "isTable", { enumerable: true, get: function () { return array_1.isTable; } }); | ||
| var object_1 = require("./object"); | ||
@@ -55,2 +59,4 @@ Object.defineProperty(exports, "isEmptyObject", { enumerable: true, get: function () { return object_1.isEmptyObject; } }); | ||
| Object.defineProperty(exports, "isObjectOfStrings", { enumerable: true, get: function () { return object_1.isObjectOfStrings; } }); | ||
| Object.defineProperty(exports, "isHashTable", { enumerable: true, get: function () { return object_1.isHashTable; } }); | ||
| Object.defineProperty(exports, "isObject2D", { enumerable: true, get: function () { return object_1.isObject2D; } }); | ||
| var strings_1 = require("./strings"); | ||
@@ -57,0 +63,0 @@ Object.defineProperty(exports, "isLowerCase", { enumerable: true, get: function () { return strings_1.isLowerCase; } }); |
+2
-0
@@ -9,1 +9,3 @@ export declare function isEmptyObject(x: any): boolean; | ||
| export declare function isObjectOfStrings(x: any): boolean; | ||
| export declare const isHashTable: typeof isObjectOfArrays; | ||
| export declare const isObject2D: typeof isObjectOfObjects; |
+3
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isObjectOfStrings = exports.isObjectOfObjects = exports.isObjectOfNumbers = exports.isObjectOfChars = exports.isObjectOfBooleans = exports.isObjectOfArrays = exports.isNonEmptyObject = exports.isEmptyObject = void 0; | ||
| exports.isObject2D = exports.isHashTable = exports.isObjectOfStrings = exports.isObjectOfObjects = exports.isObjectOfNumbers = exports.isObjectOfChars = exports.isObjectOfBooleans = exports.isObjectOfArrays = exports.isNonEmptyObject = exports.isEmptyObject = void 0; | ||
| const basictypes_1 = require("./basictypes"); | ||
@@ -97,1 +97,3 @@ function isEmptyObject(x) { | ||
| exports.isObjectOfStrings = isObjectOfStrings; | ||
| exports.isHashTable = isObjectOfArrays; | ||
| exports.isObject2D = isObjectOfObjects; |
+32
-25
@@ -11,22 +11,22 @@ { | ||
| {"name": "isNull", "description": "Returns `true` only if `arg` is null."}, | ||
| {"name": "isUndefined", "description": "Returns `true` only if `arg` is undefined."}, | ||
| {"name": "isNull", "description": "Returns `true` only if `arg` is **null**."}, | ||
| {"name": "isUndefined", "description": "Returns `true` only if `arg` is **undefined**."}, | ||
| {"name": "isPrimitive", "description": "Returns `true` only if `arg` is a Primitive value."}, | ||
| {"name": "isReference", "description": "Returns `true` only if `arg` is a Reference value."}, | ||
| {"name": "isPrimitive", "description": "Returns `true` only if `arg` is a **Primitive** value."}, | ||
| {"name": "isReference", "description": "Returns `true` only if `arg` is a **Reference** value."}, | ||
| {"heading": "Inverses"}, | ||
| {"name": "isNotArray", "description": "Returns `true` only if `arg` is not an Array."}, | ||
| {"name": "isNotBoolean", "description": "Returns `true` only if `arg` is not a Boolean."}, | ||
| {"name": "isNotChar", "description": "Returns `true` only if `arg` is not a Char."}, | ||
| {"name": "isNotNumber", "description": "Returns `true` only if `arg` is not a Number."}, | ||
| {"name": "isNotObject", "description": "Returns `true` only if `arg` is not an Object."}, | ||
| {"name": "isNotString", "description": "Returns `true` only if `arg` is not a String."}, | ||
| {"name": "isNotArray", "description": "Returns `true` only if `arg` is **NOT** an Array."}, | ||
| {"name": "isNotBoolean", "description": "Returns `true` only if `arg` is **NOT** a Boolean."}, | ||
| {"name": "isNotChar", "description": "Returns `true` only if `arg` is **NOT** a Char."}, | ||
| {"name": "isNotNumber", "description": "Returns `true` only if `arg` is **NOT** a Number."}, | ||
| {"name": "isNotObject", "description": "Returns `true` only if `arg` is **NOT** an Object."}, | ||
| {"name": "isNotString", "description": "Returns `true` only if `arg` is **NOT** a String."}, | ||
| {"name": "isNotNull", "description": "Returns `true` only if `arg` is not null."}, | ||
| {"name": "isNotUndefined", "description": "Returns `true` only if `arg` is not undefined."}, | ||
| {"name": "isNotNull", "description": "Returns `true` only if `arg` is **NOT** null."}, | ||
| {"name": "isNotUndefined", "description": "Returns `true` only if `arg` is **NOT** undefined."}, | ||
| {"name": "isNotPrimitive", "description": "Returns `true` only if `arg` is not a Primitive value."}, | ||
| {"name": "isNotReference", "description": "Returns `true` only if `arg` is not a Reference value."}, | ||
| {"name": "isNotPrimitive", "description": "Returns `true` only if `arg` is **NOT** a **Primitive** value."}, | ||
| {"name": "isNotReference", "description": "Returns `true` only if `arg` is **NOT** a **Reference** value."}, | ||
@@ -37,15 +37,15 @@ | ||
| {"name": "isNumeric", "description": "Returns `true` only if `arg` is a numeric string."}, | ||
| {"name": "isArrayIndex", "description": "Returns `true` only if `arg` is an array index."}, | ||
| {"name": "isObjectKey", "description": "Returns `true` only if `arg` is an object key."}, | ||
| {"name": "isArrayIndex", "description": "Returns `true` only if `arg` is an **Array Index**."}, | ||
| {"name": "isObjectKey", "description": "Returns `true` only if `arg` is an **Object Key**."}, | ||
| {"name": "isFlag", "description": "Returns `true` only if `arg` is a flag."}, | ||
| {"name": "isNotFlag", "description": "Returns `true` only if `arg` is NOT a flag."}, | ||
| {"name": "isSingleFlag", "description": "Returns `true` only if `arg` is a single flag."}, | ||
| {"name": "isDoubleFlag", "description": "Returns `true` only if `arg` is a double flag."}, | ||
| {"name": "isTripleFlag", "description": "Returns `true` only if `arg` is a triple flag."}, | ||
| {"name": "isFlag", "description": "Returns `true` only if `arg` is a **flag**."}, | ||
| {"name": "isNotFlag", "description": "Returns `true` only if `arg` is **NOT** a **flag**."}, | ||
| {"name": "isSingleFlag", "description": "Returns `true` only if `arg` is a **single flag**."}, | ||
| {"name": "isDoubleFlag", "description": "Returns `true` only if `arg` is a **double flag**."}, | ||
| {"name": "isTripleFlag", "description": "Returns `true` only if `arg` is a **triple flag**."}, | ||
| {"heading": "Array Functions", "description": "For checking the type of Arrays."}, | ||
| {"name": "isEmptyArray", "description": "Returns `true` only if `arg` is an empty Array."}, | ||
| {"name": "isNonEmptyArray", "description": "Returns `true` only if `arg` is a non-empty Array."}, | ||
| {"name": "isEmptyArray", "description": "Returns `true` only if `arg` is an **empty** Array."}, | ||
| {"name": "isNonEmptyArray", "description": "Returns `true` only if `arg` is a **non-empty** Array."}, | ||
| {"name": "isArrayOfArrays", "description": "Returns `true` only if `arg` is an Array of Arrays."}, | ||
@@ -58,6 +58,10 @@ {"name": "isArrayOfBooleans", "description": "Returns `true` only if `arg` is an Array of Boolean values."}, | ||
| {"name": "isArray2D", "description": "Returns `true` only if `arg` is an Array of Arrays."}, | ||
| {"name": "isGrid", "description": "Returns `true` only if `arg` is an Array of Arrays."}, | ||
| {"name": "isTable", "description": "Returns `true` only if `arg` is an Array of Objects."}, | ||
| {"heading": "Object Functions", "description": "For checking the type of Objects"}, | ||
| {"name": "isEmptyObject", "description": "Returns `true` only if `arg` is an empty Object."}, | ||
| {"name": "isNonEmptyObject", "description": "Returns `true` only if `arg` is a non-empty Object."}, | ||
| {"name": "isEmptyObject", "description": "Returns `true` only if `arg` is an **empty** Object."}, | ||
| {"name": "isNonEmptyObject", "description": "Returns `true` only if `arg` is a **non-empty** Object."}, | ||
| {"name": "isObjectOfArrays", "description": "Returns `true` only if `arg` is an Object only containing Array values."}, | ||
@@ -69,3 +73,6 @@ {"name": "isObjectOfBooleans", "description": "Returns `true` only if `arg` is an Object only containing Boolean values."}, | ||
| {"name": "isObjectOfStrings", "description": "Returns `true` only if `arg` is an Object only containing String values."}, | ||
| {"name": "isHashTable", "description": "Returns `true` only if `arg` is an Object only containing Array values."}, | ||
| {"name": "isObject2D", "description": "Returns `true` only if `arg` is an Object only containing Object values."}, | ||
| ] | ||
| } |
+1
-1
| { | ||
| "name": "whichtype", | ||
| "version": "1.5.0", | ||
| "version": "1.6.0", | ||
| "description": "Whichtype is a small JavaScript library for checking the type of your variables.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+31
-26
@@ -50,30 +50,30 @@ | ||
| | `isString(arg)` | Returns `true` only if `arg` is a String. | | ||
| | `isNull(arg)` | Returns `true` only if `arg` is null. | | ||
| | `isUndefined(arg)` | Returns `true` only if `arg` is undefined. | | ||
| | `isPrimitive(arg)` | Returns `true` only if `arg` is a Primitive value. | | ||
| | `isReference(arg)` | Returns `true` only if `arg` is a Reference value. | | ||
| | `isNull(arg)` | Returns `true` only if `arg` is **null**. | | ||
| | `isUndefined(arg)` | Returns `true` only if `arg` is **undefined**. | | ||
| | `isPrimitive(arg)` | Returns `true` only if `arg` is a **Primitive** value. | | ||
| | `isReference(arg)` | Returns `true` only if `arg` is a **Reference** value. | | ||
| | **Inverses** | | | ||
| | `isNotArray(arg)` | Returns `true` only if `arg` is not an Array. | | ||
| | `isNotBoolean(arg)` | Returns `true` only if `arg` is not a Boolean. | | ||
| | `isNotChar(arg)` | Returns `true` only if `arg` is not a Char. | | ||
| | `isNotNumber(arg)` | Returns `true` only if `arg` is not a Number. | | ||
| | `isNotObject(arg)` | Returns `true` only if `arg` is not an Object. | | ||
| | `isNotString(arg)` | Returns `true` only if `arg` is not a String. | | ||
| | `isNotNull(arg)` | Returns `true` only if `arg` is not null. | | ||
| | `isNotUndefined(arg)` | Returns `true` only if `arg` is not undefined. | | ||
| | `isNotPrimitive(arg)` | Returns `true` only if `arg` is not a Primitive value. | | ||
| | `isNotReference(arg)` | Returns `true` only if `arg` is not a Reference value. | | ||
| | `isNotArray(arg)` | Returns `true` only if `arg` is **NOT** an Array. | | ||
| | `isNotBoolean(arg)` | Returns `true` only if `arg` is **NOT** a Boolean. | | ||
| | `isNotChar(arg)` | Returns `true` only if `arg` is **NOT** a Char. | | ||
| | `isNotNumber(arg)` | Returns `true` only if `arg` is **NOT** a Number. | | ||
| | `isNotObject(arg)` | Returns `true` only if `arg` is **NOT** an Object. | | ||
| | `isNotString(arg)` | Returns `true` only if `arg` is **NOT** a String. | | ||
| | `isNotNull(arg)` | Returns `true` only if `arg` is **NOT** null. | | ||
| | `isNotUndefined(arg)` | Returns `true` only if `arg` is **NOT** undefined. | | ||
| | `isNotPrimitive(arg)` | Returns `true` only if `arg` is **NOT** a **Primitive** value. | | ||
| | `isNotReference(arg)` | Returns `true` only if `arg` is **NOT** a **Reference** value. | | ||
| | **Arg Functions** | For checking the type of command line arguments. | | ||
| | `hasAColon(arg)` | Returns `true` only if `arg` contains a `colon`. | | ||
| | `isNumeric(arg)` | Returns `true` only if `arg` is a numeric string. | | ||
| | `isArrayIndex(arg)` | Returns `true` only if `arg` is an array index. | | ||
| | `isObjectKey(arg)` | Returns `true` only if `arg` is an object key. | | ||
| | `isFlag(arg)` | Returns `true` only if `arg` is a flag. | | ||
| | `isNotFlag(arg)` | Returns `true` only if `arg` is NOT a flag. | | ||
| | `isSingleFlag(arg)` | Returns `true` only if `arg` is a single flag. | | ||
| | `isDoubleFlag(arg)` | Returns `true` only if `arg` is a double flag. | | ||
| | `isTripleFlag(arg)` | Returns `true` only if `arg` is a triple flag. | | ||
| | `isArrayIndex(arg)` | Returns `true` only if `arg` is an **Array Index**. | | ||
| | `isObjectKey(arg)` | Returns `true` only if `arg` is an **Object Key**. | | ||
| | `isFlag(arg)` | Returns `true` only if `arg` is a **flag**. | | ||
| | `isNotFlag(arg)` | Returns `true` only if `arg` is **NOT** a **flag**. | | ||
| | `isSingleFlag(arg)` | Returns `true` only if `arg` is a **single flag**. | | ||
| | `isDoubleFlag(arg)` | Returns `true` only if `arg` is a **double flag**. | | ||
| | `isTripleFlag(arg)` | Returns `true` only if `arg` is a **triple flag**. | | ||
| | **Array Functions** | For checking the type of Arrays. | | ||
| | `isEmptyArray(arg)` | Returns `true` only if `arg` is an empty Array. | | ||
| | `isNonEmptyArray(arg)` | Returns `true` only if `arg` is a non-empty Array. | | ||
| | `isEmptyArray(arg)` | Returns `true` only if `arg` is an **empty** Array. | | ||
| | `isNonEmptyArray(arg)` | Returns `true` only if `arg` is a **non-empty** Array. | | ||
| | `isArrayOfArrays(arg)` | Returns `true` only if `arg` is an Array of Arrays. | | ||
@@ -85,5 +85,8 @@ | `isArrayOfBooleans(arg)` | Returns `true` only if `arg` is an Array of Boolean values. | | ||
| | `isArrayOfStrings(arg)` | Returns `true` only if `arg` is an Array of Strings. | | ||
| | `isArray2D(arg)` | Returns `true` only if `arg` is an Array of Arrays. | | ||
| | `isGrid(arg)` | Returns `true` only if `arg` is an Array of Arrays. | | ||
| | `isTable(arg)` | Returns `true` only if `arg` is an Array of Objects. | | ||
| | **Object Functions** | For checking the type of Objects | | ||
| | `isEmptyObject(arg)` | Returns `true` only if `arg` is an empty Object. | | ||
| | `isNonEmptyObject(arg)` | Returns `true` only if `arg` is a non-empty Object. | | ||
| | `isEmptyObject(arg)` | Returns `true` only if `arg` is an **empty** Object. | | ||
| | `isNonEmptyObject(arg)` | Returns `true` only if `arg` is a **non-empty** Object. | | ||
| | `isObjectOfArrays(arg)` | Returns `true` only if `arg` is an Object only containing Array values. | | ||
@@ -95,2 +98,4 @@ | `isObjectOfBooleans(arg)` | Returns `true` only if `arg` is an Object only containing Boolean values. | | ||
| | `isObjectOfStrings(arg)` | Returns `true` only if `arg` is an Object only containing String values. | | ||
| | `isHashTable(arg)` | Returns `true` only if `arg` is an Object only containing Array values. | | ||
| | `isObject2D(arg)` | Returns `true` only if `arg` is an Object only containing Object values. | | ||
@@ -103,3 +108,3 @@ | ||
| | `Description` | `Whichtype is a small JavaScript library for checking the type of your variables.` | | ||
| | `Version` | `1.5.0` | | ||
| | `Version` | `1.6.0` | | ||
| | `Author` | `iaseth` | | ||
@@ -106,0 +111,0 @@ | `Homepage` | `https://github.com/iaseth/whichtype` | |
39732
6.59%575
3.79%155
3.33%