New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

validate.io-array-like

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate.io-array-like - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

lib/index.js

@@ -23,3 +23,3 @@ 'use strict';

function isArrayLike( value ) {
return value !== void 0 && value !== null && isInteger( value.length ) && value.length >= 0 && value.length <= MAX;
return value !== void 0 && value !== null && typeof value !== 'function' && isInteger( value.length ) && value.length >= 0 && value.length <= MAX;
} // end FUNCTION isArrayLike()

@@ -26,0 +26,0 @@

{
"name": "validate.io-array-like",
"version": "1.0.0",
"version": "1.0.1",
"description": "Validates if a value is array-like.",

@@ -5,0 +5,0 @@ "author": {

@@ -25,3 +25,3 @@ array-like

Validates if a value is `array`-like.
Validates if a value is [`array`-like](http://www.2ality.com/2013/05/quirk-array-like-objects.html).

@@ -50,5 +50,2 @@ ``` javascript

console.log( isArrayLike( function(){} ) );
// returns true
console.log( isArrayLike( 'beep' ) );

@@ -76,2 +73,5 @@ // returns true

// returns false
console.log( isArrayLike( function(){} ) );
// returns false
```

@@ -78,0 +78,0 @@

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