Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

isa.js

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isa.js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

IsA.js

@@ -70,2 +70,3 @@ var arrayTag = '[object Array]',

return this.isObject(value) && objToString.call(value) == regexpTag;
}};
}
};

@@ -1,1 +0,1 @@

var arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",stringTag="[object String]",arrayProto=Array.prototype,objectProto=Object.prototype,stringProto=String.prototype,objToString=objectProto.toString,fnToString=Function.prototype.toString,objCtorString=fnToString.call(Object);module.exports={getPrototypeOf:Object.getPrototypeOf,isHostObject:function(t){var o=!1;if(null!==t&&"function"!=typeof t.toString)try{o=!!(t+"")}catch(r){}return o},isPlainObject:function(t){if(!this.isObjectLike(t)||objToString.call(t)!=objectTag||this.isHostObject(t))return!1;var o="function"==typeof t.constructor?this.getPrototypeOf(t):objectProto;if(null===o)return!0;var r=o.constructor;return"function"==typeof r&&r instanceof r&&fnToString.call(r)==objCtorString},isObjectLike:function(t){return!!t&&"object"==typeof t},isArray:Array.isArray,isObject:function(t){var o=typeof t;return!!t&&("object"==o||"function"==o)},isError:function(t){return this.isObjectLike(t)&&"string"==typeof t.message&&objToString.call(t)==errorTag},isNumber:function(t){return"number"==typeof t||this.isObjectLike(t)&&objToString.call(t)==numberTag},isDate:function(t){return this.isObjectLike(t)&&objToString.call(t)==dateTag},isFunction:function(t){return this.isObject(t)&&objToString.call(t)==funcTag},isBoolean:function(t){return t===!0||t===!1||this.isObjectLike(t)&&objToString.call(t)==boolTag},isString:function(t){return"string"==typeof t||this.isObjectLike(t)&&objToString.call(t)==stringTag},isRegExp:function(t){return this.isObject(t)&&objToString.call(t)==regexpTag}};
var arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",stringTag="[object String]",arrayProto=Array.prototype,objectProto=Object.prototype,stringProto=String.prototype,objToString=objectProto.toString,fnToString=Function.prototype.toString,objCtorString=fnToString.call(Object);module.exports={getPrototypeOf:Object.getPrototypeOf,isHostObject:function(t){var o=!1;if(null!==t&&"function"!=typeof t.toString)try{o=!!(t+"")}catch(r){}return o},isPlainObject:function(t){if(!this.isObjectLike(t)||objToString.call(t)!=objectTag||this.isHostObject(t))return!1;var o="function"==typeof t.constructor?this.getPrototypeOf(t):objectProto;if(null===o)return!0;var r=o.constructor;return"function"==typeof r&&r instanceof r&&fnToString.call(r)==objCtorString},isObjectLike:function(t){return!!t&&"object"==typeof t},isArray:Array.isArray,isObject:function(t){var o=typeof t;return!!t&&("object"==o||"function"==o)},isError:function(t){return this.isObjectLike(t)&&"string"==typeof t.message&&objToString.call(t)==errorTag},isNumber:function(t){return"number"==typeof t||this.isObjectLike(t)&&objToString.call(t)==numberTag},isDate:function(t){return this.isObjectLike(t)&&objToString.call(t)==dateTag},isFunction:function(t){return this.isObject(t)&&objToString.call(t)==funcTag},isBoolean:function(t){return t===!0||t===!1||this.isObjectLike(t)&&objToString.call(t)==boolTag},isString:function(t){return"string"==typeof t||this.isObjectLike(t)&&objToString.call(t)==stringTag},isRegExp:function(t){return this.isObject(t)&&objToString.call(t)==regexpTag},isBuffer:function(t){return Buffer.isBuffer(t)},isReadableStream:function(t){return t instanceof ReadableStream}};
{
"name": "isa.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Very minimal collection is isA functions. isObject, isArray, isDate...",

@@ -30,5 +30,5 @@ "homepage": "https://github.com/imrefazekas/isa",

},
"_id": "isa.js@1.0.0",
"_id": "isa.js@1.0.1",
"dependencies": {
}
}

@@ -22,3 +22,3 @@ ISA - dependency-free very minimal collection of IsA.. functions

var _ = require('./isa');
var _ = require('isa.js');
...

@@ -25,0 +25,0 @@ _.isFunction( function(){} );

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