Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

isArray

The isArray() method of the Array object checks to see if the supplied parameter is an array. It returns a boolean value(true or false).

SyntaxArray.isArray( object )

Parameters

object The data to be checked.

Examples

Return new array containing numbers under 30. var data = [ "lion","tiger","bear" ]; alert( Array.isArray(data) ); /* true */ var data = "hello my friend"; alert( Array.isArray(data) ); /* false */

JavaScript

Methods

addEventListeneralertaveragebackblurconcatcreatedecodeURIdecodeURIComponentencodeURIencodeURIComponentevaleveryfilterforwardgoisArrayisFiniteisNaNjoinparseFloatparseIntpoppushpushStatereducereplaceStatereverseshiftshuffleslicesomesortspliceunshiftwrite