@empathyco/x-utils
Advanced tools
Comparing version 0.1.0-alpha.6 to 0.1.0-alpha.7
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isObject = exports.isFunction = void 0; | ||
exports.isObject = exports.isFunction = exports.isArray = void 0; | ||
/** | ||
* Determines whether the passed value is an Array. | ||
* | ||
* @remarks It can be used to narrow the Array's type passing the desired type to the generic. | ||
* | ||
* @param value - The value to be checked. | ||
* | ||
* @returns True if the value is an Array; otherwise, false. | ||
* | ||
* @public | ||
*/ | ||
function isArray(value) { | ||
return Array.isArray(value); | ||
} | ||
exports.isArray = isArray; | ||
/** | ||
* Determines whether the passed value is a Function. | ||
@@ -6,0 +21,0 @@ * |
/** | ||
* Determines whether the passed value is an Array. | ||
* | ||
* @remarks It can be used to narrow the Array's type passing the desired type to the generic. | ||
* | ||
* @param value - The value to be checked. | ||
* | ||
* @returns True if the value is an Array; otherwise, false. | ||
* | ||
* @public | ||
*/ | ||
export function isArray(value) { | ||
return Array.isArray(value); | ||
} | ||
/** | ||
* Determines whether the passed value is a Function. | ||
@@ -3,0 +17,0 @@ * |
{ | ||
"name": "@empathyco/x-utils", | ||
"version": "0.1.0-alpha.6", | ||
"version": "0.1.0-alpha.7", | ||
"description": "A utility package for Empathy search", | ||
@@ -44,3 +44,3 @@ "author": "Empathy Systems Corporation S.L.", | ||
}, | ||
"gitHead": "1dbdaee6edb8d9ffaabf2e82f2fa0ecc7c40a9f8" | ||
"gitHead": "c4f0995bbcc8a45e73a3ca1b33d263c5049fee74" | ||
} |
import { AnyFunction } from './types/utils.types'; | ||
/** | ||
* Determines whether the passed value is an Array. | ||
* | ||
* @remarks It can be used to narrow the Array's type passing the desired type to the generic. | ||
* | ||
* @param value - The value to be checked. | ||
* | ||
* @returns True if the value is an Array; otherwise, false. | ||
* | ||
* @public | ||
*/ | ||
export declare function isArray<Type>(value: Type | Type[]): value is Type[]; | ||
/** | ||
* Determines whether the passed value is a Function. | ||
@@ -4,0 +16,0 @@ * |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62774
572