Région de recherche :

Date :

https://developer.mozilla.org › ... › Web › JavaScript › Reference › Global_Objects › Array › isArray

Array.isArray() - JavaScript | MDN - MDN Web Docs

Array.isArray() checks if the passed value is an Array. It does not check the value's prototype chain, nor does it rely on the Array constructor it is attached to. It returns true for any value that was created using the array literal syntax or the Array constructor.

https://stackoverflow.com › questions › 767486

How do I check if a variable is an array in JavaScript?

It takes the recommended Array.isArray() static method of EcmaScript 5+ and the old recommended way before ES5 and combines them so that you have a working function in both new and old JS versions: isArray = Array.isArray || function(value) { return Object.prototype.toString.call(value)=="[object Array]"; } isArray([]);//true

https://www.w3schools.com › jsref › jsref_isarray.asp

JavaScript Array isArray() Method - W3Schools

Array.isArray() is a static property of the JavaScript Array object. You can only use it as Array.isArray(). Using x.isArray(), where x is an array will return undefined.

https://developer.mozilla.org › ... › Web › JavaScript › Reference › Global_Objects › Array › isArray

Array.isArray() - JavaScript | MDN - MDN Web Docs

La méthode Array.isArray() permet de déterminer si l'objet passé en argument est un objet Array, elle renvoie true si le paramètre passé à la fonction est de type Array et false dans le cas contraire.

https://www.javascripttutorial.net › array › how-to-check-if-a-variable-is-an-array-in...

How to Check If a Variable is an Array in JavaScript - JavaScript Tutorial

This tutorial shows you how to use the Array.isArray () method and instanceof operator to check if a variable is an array in JavaScript.

http://devdoc.net › web › developer.mozilla.org › en-US › docs › JavaScript › Reference › Global_Objects › Array › isArray.html

Array.isArray() - JavaScript | MDN - devdoc.net

The Array.isArray() function determines whether the passed value is an Array. Array.isArray([1, 2, 3]); // true Array.isArray({foo: 123}); // false Array.isArray('foobar'); // false Array.isArray(undefined); // false

https://www.programiz.com › javascript › library › array › isarray

Javascript Array isArray() (with Examples) - Programiz

In this tutorial, you will learn about the JavaScript Array isArray() method with the help of examples. The isArray() method checks whether the passed argument is an array or not.

https://runebook.dev › fr › docs › javascript › global_objects › array › isarray

JavaScript - Array.isArray [fr] - Runebook.dev

Array.isArray() vérifie si la valeur transmise est un Array. Il ne vérifie pas la chaîne de prototypes de valeur et ne s'appuie pas non plus sur le constructeur Array auquel il est rattaché. Il renvoie true pour toute valeur créée à l'aide de la syntaxe littérale de tableau ou du constructeur Array.

https://codetofun.com › js › array-methods › isarray

JavaScript Array isArray() Method - CodeToFun

The isArray() method is a built-in function in JavaScript that allows you to check if a given value is an array. It returns true if the value is an array and false otherwise. Syntax. The syntax for the isArray() method is straightforward: syntax.js. Array.isArray(value); value: The value to be checked for being an array. Example.

https://frost.cs.uchicago.edu › ... › JavaScript › Reference › Global_Objects › Array › isArray.html

Array.isArray() - MDN Web Docs

The Array.isArray() method determines whether the passed value is an Array. Array.isArray([1, 2, 3]); // true Array.isArray({foo: 123}); // false Array.isArray('foobar'); // false Array.isArray(undefined); // false