@@ -11,1 +11,3 @@ export declare function isArray(val: any): boolean; | ||
| export declare function isReference(val: any): boolean; | ||
| export declare const isSimple: typeof isPrimitive; | ||
| export declare const isComplex: typeof isReference; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isReference = exports.isPrimitive = exports.isUndefined = exports.isNull = exports.isString = exports.isObject = exports.isNumber = exports.isChar = exports.isBoolean = exports.isArray = void 0; | ||
| exports.isComplex = exports.isSimple = exports.isReference = exports.isPrimitive = exports.isUndefined = exports.isNull = exports.isString = exports.isObject = exports.isNumber = exports.isChar = exports.isBoolean = exports.isArray = void 0; | ||
| function isArray(val) { | ||
@@ -47,1 +47,3 @@ return Array.isArray(val); | ||
| exports.isReference = isReference; | ||
| exports.isSimple = isPrimitive; | ||
| exports.isComplex = isReference; |
+2
-2
@@ -1,3 +0,3 @@ | ||
| 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 { isArray, isBoolean, isChar, isNumber, isObject, isString, isNull, isUndefined, isPrimitive, isReference, isSimple, isComplex, } from "./basictypes"; | ||
| export { isNotArray, isNotBoolean, isNotChar, isNotNumber, isNotObject, isNotString, isNotNull, isNotUndefined, isNotPrimitive, isNotReference, isNotSimple, isNotComplex, } from './inverses'; | ||
| export { hasAColon, isNumeric, isArrayIndex, isObjectKey, isFlag, isNotFlag, isSingleFlag, isDoubleFlag, isTripleFlag, } from './args'; | ||
@@ -4,0 +4,0 @@ export { isEmptyArray, isNonEmptyArray, isArrayOfArrays, isArrayOfBooleans, isArrayOfChars, isArrayOfNumbers, isArrayOfObjects, isArrayOfStrings, isArray2D, isGrid, isTable, } from './array'; |
+6
-2
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| 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; | ||
| 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.isNotComplex = exports.isNotSimple = exports.isNotReference = exports.isNotPrimitive = exports.isNotUndefined = exports.isNotNull = exports.isNotString = exports.isNotObject = exports.isNotNumber = exports.isNotChar = exports.isNotBoolean = exports.isNotArray = exports.isComplex = exports.isSimple = 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 = exports.isObject2D = exports.isHashTable = exports.isObjectOfStrings = exports.isObjectOfObjects = void 0; | ||
| var basictypes_1 = require("./basictypes"); | ||
@@ -16,2 +16,4 @@ Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return basictypes_1.isArray; } }); | ||
| Object.defineProperty(exports, "isReference", { enumerable: true, get: function () { return basictypes_1.isReference; } }); | ||
| Object.defineProperty(exports, "isSimple", { enumerable: true, get: function () { return basictypes_1.isSimple; } }); | ||
| Object.defineProperty(exports, "isComplex", { enumerable: true, get: function () { return basictypes_1.isComplex; } }); | ||
| var inverses_1 = require("./inverses"); | ||
@@ -28,2 +30,4 @@ Object.defineProperty(exports, "isNotArray", { enumerable: true, get: function () { return inverses_1.isNotArray; } }); | ||
| Object.defineProperty(exports, "isNotReference", { enumerable: true, get: function () { return inverses_1.isNotReference; } }); | ||
| Object.defineProperty(exports, "isNotSimple", { enumerable: true, get: function () { return inverses_1.isNotSimple; } }); | ||
| Object.defineProperty(exports, "isNotComplex", { enumerable: true, get: function () { return inverses_1.isNotComplex; } }); | ||
| var args_1 = require("./args"); | ||
@@ -30,0 +34,0 @@ Object.defineProperty(exports, "hasAColon", { enumerable: true, get: function () { return args_1.hasAColon; } }); |
@@ -11,1 +11,3 @@ export declare function isNotArray(x: any): boolean; | ||
| export declare function isNotReference(x: any): boolean; | ||
| export declare const isNotSimple: typeof isNotPrimitive; | ||
| export declare const isNotComplex: typeof isNotReference; |
+3
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isNotReference = exports.isNotPrimitive = exports.isNotUndefined = exports.isNotNull = exports.isNotString = exports.isNotObject = exports.isNotNumber = exports.isNotChar = exports.isNotBoolean = exports.isNotArray = void 0; | ||
| exports.isNotComplex = exports.isNotSimple = exports.isNotReference = exports.isNotPrimitive = exports.isNotUndefined = exports.isNotNull = exports.isNotString = exports.isNotObject = exports.isNotNumber = exports.isNotChar = exports.isNotBoolean = exports.isNotArray = void 0; | ||
| const basictypes_1 = require("./basictypes"); | ||
@@ -45,1 +45,3 @@ function isNotArray(x) { | ||
| exports.isNotReference = isNotReference; | ||
| exports.isNotSimple = isNotPrimitive; | ||
| exports.isNotComplex = isNotReference; |
+9
-5
@@ -16,2 +16,4 @@ { | ||
| {"name": "isReference", "description": "Returns `true` only if `arg` is a **Reference** value."}, | ||
| {"name": "isSimple", "description": "Alias for **isPrimitive**."}, | ||
| {"name": "isComplex", "description": "Alias for **isReference**."}, | ||
@@ -32,2 +34,4 @@ | ||
| {"name": "isNotReference", "description": "Returns `true` only if `arg` is **NOT** a **Reference** value."}, | ||
| {"name": "isNotSimple", "description": "Alias for **isNotPrimitive**."}, | ||
| {"name": "isNotComplex", "description": "Alias for **isNotReference**."}, | ||
@@ -58,5 +62,5 @@ | ||
| {"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."}, | ||
| {"name": "isArray2D", "description": "Alias for **isArrayOfArrays**."}, | ||
| {"name": "isGrid", "description": "Alias for **isArrayOfArrays**."}, | ||
| {"name": "isTable", "description": "Alias for **isArrayOfObjects**."}, | ||
@@ -74,5 +78,5 @@ | ||
| {"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."}, | ||
| {"name": "isHashTable", "description": "Alias for **isObjectOfArrays**."}, | ||
| {"name": "isObject2D", "description": "Alias for **isObjectOfObjects**."}, | ||
| ] | ||
| } |
+1
-1
| { | ||
| "name": "whichtype", | ||
| "version": "1.6.0", | ||
| "version": "1.7.0", | ||
| "description": "Whichtype is a small JavaScript library for checking the type of your variables.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+10
-6
@@ -54,2 +54,4 @@ | ||
| | `isReference(arg)` | Returns `true` only if `arg` is a **Reference** value. | | ||
| | `isSimple(arg)` | Alias for **isPrimitive**. | | ||
| | `isComplex(arg)` | Alias for **isReference**. | | ||
| | **Inverses** | | | ||
@@ -66,2 +68,4 @@ | `isNotArray(arg)` | Returns `true` only if `arg` is **NOT** an Array. | | ||
| | `isNotReference(arg)` | Returns `true` only if `arg` is **NOT** a **Reference** value. | | ||
| | `isNotSimple(arg)` | Alias for **isNotPrimitive**. | | ||
| | `isNotComplex(arg)` | Alias for **isNotReference**. | | ||
| | **Arg Functions** | For checking the type of command line arguments. | | ||
@@ -86,5 +90,5 @@ | `hasAColon(arg)` | Returns `true` only if `arg` contains a `colon`. | | ||
| | `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. | | ||
| | `isArray2D(arg)` | Alias for **isArrayOfArrays**. | | ||
| | `isGrid(arg)` | Alias for **isArrayOfArrays**. | | ||
| | `isTable(arg)` | Alias for **isArrayOfObjects**. | | ||
| | **Object Functions** | For checking the type of Objects | | ||
@@ -99,4 +103,4 @@ | `isEmptyObject(arg)` | Returns `true` only if `arg` is an **empty** Object. | | ||
| | `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. | | ||
| | `isHashTable(arg)` | Alias for **isObjectOfArrays**. | | ||
| | `isObject2D(arg)` | Alias for **isObjectOfObjects**. | | ||
@@ -109,3 +113,3 @@ | ||
| | `Description` | `Whichtype is a small JavaScript library for checking the type of your variables.` | | ||
| | `Version` | `1.6.0` | | ||
| | `Version` | `1.7.0` | | ||
| | `Author` | `iaseth` | | ||
@@ -112,0 +116,0 @@ | `Homepage` | `https://github.com/iaseth/whichtype` | |
41006
3.21%591
2.78%159
2.58%