</>PackageGraphPackageGraph

isarray

npmv2.0.5

Array#isArray for older browsers

Not recommended for new projects

No — isarray should not be adopted for new projects. Last published 2620 days ago.

  • AAdoption: grade A, Excellent.

    174.9M downloads per week and 3 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 2620 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 3.3 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding isarray to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

3.3 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the isarray README.

var isArray = require('isarray');

console.log(isArray([])); // => true
console.log(isArray({})); // => false

isarray vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
isarraythis page174.9M3MIT7 years ago
p-locate216.9M1MIT1 day ago
open130.4M4MIT1 day ago
axios106.5M4MIT1 day ago
fflate53.5M1MIT1 day ago
default-browser52.6M1MIT1 day ago

Dependencies

Declared by isarray v2.0.5. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (1)

tape ~2.13.4

Used by

Popular packages that depend on isarray.

Relationship graph

Dependencies (left) and dependents (right) of isarray.

eventsdeep-equales-get-iteratorisarray
isarray dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 287 days apart.

Recent versions of isarray
VersionPublishedSizeLicense
2.0.5latest7 years ago3.3 KBMIT
2.0.48 years ago3.4 KBMIT
2.0.38 years ago3.3 KBMIT
2.0.29 years agoMIT
2.0.110 years agoMIT
2.0.010 years agoMIT
1.0.010 years agoMIT
0.0.113 years agoMIT
0.0.013 years agoMIT

Overview

isarray is an npm package that array#isArray for older browsers. It is extremely widely used, with about 174.9M downloads per week and 3 known dependents in the graph. The latest version is 2.0.5, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need array#isArray for older browsers and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (174.9M weekly downloads).
  • Clear open-source license (MIT).
  • Lean dependency tree (1 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use isarray?

No — isarray should not be adopted for new projects. Last published 2620 days ago.

How do I install isarray?

Run `npm install isarray` to add isarray to your npm project.

What license is isarray released under?

isarray is distributed under the MIT license.

How popular is isarray?

isarray has approximately 174,862,265 downloads per week and 3 known dependent packages.

Is isarray still maintained?

The most recent release of isarray (v2.0.5) was published 7 years ago.

Does isarray run install scripts?

No. isarray does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.