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

arc-is

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-is - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

10

index.js

@@ -39,2 +39,3 @@ //Table taken from: http://www.ecma-international.org/ecma-262/6.0/ section 18.3

module.exports = function is(_val,_objType){
console.log(_val,_objType);
var $return,toString;

@@ -58,4 +59,11 @@

toString = (_val.toString ? _val.toString() : Object.prototype.toString.call(_val)).match(/\[object ([^\]]*)\]/);
if(_val.toString){
toString = _val.toString().match(/\[object ([^\]]*)\]/);
}
if(!toString){
toString = Object.prototype.toString.call(_val).match(/\[object ([^\]]*)\]/);
}
if(!toString){
return $return;

@@ -62,0 +70,0 @@ }

2

package.json
{
"name": "arc-is",
"version": "1.0.3",
"version": "1.0.4",
"description": "Simple is() function for typechecking",

@@ -5,0 +5,0 @@ "main": "index.js",

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