validate.io-array-like
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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 @@ |
6420