🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

is-arrayish

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-arrayish - npm Package Compare versions

Comparing version

to
0.2.0

3

index.js
'use strict';
module.exports = function isArrayish(obj) {
return obj instanceof Array || Array.isArray(obj);
return obj instanceof Array || Array.isArray(obj) ||
(obj.length >= 0 && obj.splice instanceof Function);
};
{
"name": "is-arrayish",
"description": "Determines if an object can be used as an array",
"version": "0.1.1",
"version": "0.2.0",
"author": "Qix (http://github.com/qix-)",

@@ -6,0 +6,0 @@ "keywords": [