Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here

isarray

Array#isArray for older browsers.

Subscribe to updates I use isarray


Statistics on isarray

Number of watchers on Github 62
Number of open issues 4
Average time to close an issue 3 days
Main language JavaScript
Average time to merge a PR about 7 hours
Open pull requests 6+
Closed pull requests 3+
Last commit over 2 years ago
Repo Created about 7 years ago
Repo Last Updated over 2 years ago
Size 15 KB
Organization / Authorjuliangruber
Contributors1
Page Updated
Do you use isarray? Leave a review!
View open issues (4)
View isarray activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating isarray for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

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!

License

(MIT)

Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

isarray open issues Ask a question     (View All Issues)
  • over 3 years license discussion
  • almost 4 years Promise support?
  • over 4 years Testing Node, not own code
isarray open pull requests (View All Pulls)
  • Update test.js
  • always test on node stable
  • use Object.prototype.toString
  • test.js: Actually test the contents of this package
  • Add files entry to package.json.
  • Update dependencies to enable Greenkeeper 🌴
isarray questions on Stackoverflow (View All Questions)
  • Twitter typeahead.js with webpack causing error on isArray: $.isArray
  • Handling error objects with ng-resource when isArray: true
  • jQuery and Array isArray are not working correctly?
  • IE8 - IsArray() gets an error object expected
  • Is instanceof Array better than isArray in JavaScript?
  • Understanding angularJS $resource isArray property
  • angularJs isArray: false or true
  • javascript, is there an isObject function like isArray?
  • IsArray in Jade? looping through a collection versus displaying as string
  • How to override native isArray method is nesessary?
  • Why does AngularJS not use instanceof in its isArray function?
  • How do I save a $resource when isArray is set to true in AngularJS?
  • $.isArray() some misunderstanding. jQuery
  • $.isArray() function some problems
  • Why is ReflectionParameter::isArray always returning false?
  • Angularjs service: when should we use isArray vs params
  • How to control the isArray value from the calling function? (modify $resource params)
  • Angular.js Error: Expected response to contain an array but got an object although isArray is set to false
  • AngularJs $resource use of isArray for both request and response
  • which is the best method used for checking isarray
  • Cannot read property 'isArray' of undefined
  • Dust.js in IE8 "Object doesn't support property or method 'isArray'"
  • Java array reflection: isArray vs. instanceof
  • Typeahead.js - Cannot read property of 'isArray' of undefined
  • .each not working on an Array. But .isArray returns true?
  • Using isPrimitive or isArray on Introspector Values
  • What is the best practice to make an object in JS like this: T('isArray')([]) == T.run('isArray')([]) == T().run('isArray')?
  • Java Reflection isArray() always false
isarray list of languages used
Other projects in JavaScript