Socket
Socket
Sign inDemoInstall

@empathyco/x-utils

Package Overview
Dependencies
Maintainers
5
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empathyco/x-utils - npm Package Compare versions

Comparing version 0.1.0-alpha.6 to 0.1.0-alpha.7

17

dist/cjs/typeguards.js
"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 @@ *

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc