isArray

isArray ( object object ) : boolean

Returns true if the object is an array, a map or a list.

Example


console( isArray(["yop"]) ) //-> true
console( isArray(1) ) //-> false

Parameters

object

the object to analyze