• function

can.isArray

 

Check if an object is an array.

can.isArray(obj)

Parameters

  1. obj {*}

    The object to check.

Returns

{Boolean}

Whether obj is an Array.

can.isArray(object) returns if the object is an Array.

can.isArray([]);    // true
can.isArray(false); // false