Skip to content

juliangruber/isarray

Folders and files

NameName
Last commit message
Last commit date
Oct 24, 2024
Aug 4, 2022
Jul 21, 2014
Dec 22, 2020
Aug 25, 2023
Jul 8, 2019
Jul 21, 2014
Oct 8, 2023
Jul 23, 2022
May 27, 2013
Aug 4, 2022
Aug 2, 2024
Aug 2, 2024
Oct 14, 2022
Feb 24, 2024
Aug 4, 2022

Repository files navigation

isarray

Array#isArray for older browsers and deprecated Node.js versions.

github actions downloads openssf OpenSSF Best Practices

Just use Array.isArray directly, unless you need to support those older versions.

Usage

var isArray = require('isarray');

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

API

Array#isArray

Installation

With npm do

$ npm install isarray

Then bundle for the browser with browserify.

Sponsors

This module is proudly supported by my Sponsors!

Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my Patreon. Not sure how much of my modules you're using? Try feross/thanks!

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.