class method Object.isArray

View source on GitHub →

Object.isArray(object) → Boolean
  • object (Object) – The object to test.

Returns true if object is an Array; false otherwise.

Examples
Object.isArray([]);
//-> true
 Object.isArray($w());
//-> true
 Object.isArray({ });
//-> false