Socket
Socket
Sign inDemoInstall

@sindresorhus/is

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sindresorhus/is - npm Package Compare versions

Comparing version 3.1.2 to 4.0.0

5

dist/index.d.ts

@@ -67,3 +67,3 @@ /// <reference types="node" />

var safeInteger: (value: unknown) => value is number;
var plainObject: <Value = unknown>(value: unknown) => value is Record<string, Value>;
var plainObject: <Value = unknown>(value: unknown) => value is Record<string | number | symbol, Value>;
var typedArray: (value: unknown) => value is TypedArray;

@@ -92,2 +92,3 @@ var arrayLike: <T = unknown>(value: unknown) => value is ArrayLike<T>;

}
declare type ObjectKey = string | number | symbol;
export interface ArrayLike<T> {

@@ -195,3 +196,3 @@ readonly [index: number]: T;

safeInteger: (value: unknown) => asserts value is number;
plainObject: <Value = unknown>(value: unknown) => asserts value is Record<string, Value>;
plainObject: <Value = unknown>(value: unknown) => asserts value is Record<ObjectKey, Value>;
typedArray: (value: unknown) => asserts value is TypedArray;

@@ -198,0 +199,0 @@ arrayLike: <T = unknown>(value: unknown) => asserts value is ArrayLike<T>;

2

package.json
{
"name": "@sindresorhus/is",
"version": "3.1.2",
"version": "4.0.0",
"description": "Type check values",

@@ -5,0 +5,0 @@ "license": "MIT",

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