1. isarray
Array#isArray for older browsers
isarray
Package: isarray
Created by: juliangruber
Last modified: Wed, 12 Jul 2023 19:07:21 GMT
Version: 2.0.5
License: MIT
Downloads: 386,488,256
Repository: https://github.com/juliangruber/isarray

Install

npm install isarray
yarn add isarray

isarray

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

build status
downloads

browser support

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

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!

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code