Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.1.1 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": [

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