Socket
Socket
Sign inDemoInstall

is-what

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-what - npm Package Compare versions

Comparing version 3.2.4 to 3.3.0

4

package.json
{
"name": "is-what",
"version": "3.2.4",
"version": "3.3.0",
"description": "JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.",

@@ -45,3 +45,3 @@ "main": "dist/index.cjs.js",

"devDependencies": {
"@babel/core": "^7.5.4",
"@babel/core": "^7.5.5",
"@types/babel-core": "^6.25.6",

@@ -48,0 +48,0 @@ "@types/jest": "^23.3.14",

@@ -173,3 +173,3 @@ /**

*/
export function isSymbol (payload: any): payload is Symbol {
export function isSymbol (payload: any): payload is symbol {
return (getType(payload) === 'Symbol')

@@ -184,3 +184,3 @@ }

*/
export function isPrimitive (payload: any): any {
export function isPrimitive (payload: any): payload is boolean | null | undefined | number | string | symbol {
return (

@@ -187,0 +187,0 @@ isBoolean(payload) ||

@@ -130,3 +130,3 @@ /**

*/
export declare function isSymbol(payload: any): payload is Symbol;
export declare function isSymbol(payload: any): payload is symbol;
/**

@@ -138,3 +138,3 @@ * Returns whether the payload is a primitive type (eg. Boolean | Null | Undefined | Number | String | Symbol)

*/
export declare function isPrimitive(payload: any): any;
export declare function isPrimitive(payload: any): payload is boolean | null | undefined | number | string | symbol;
/**

@@ -141,0 +141,0 @@ * Does a generic check to check that the given payload is of a given type.

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