Skip to content
Tania Shatilova edited this page Nov 10, 2015 · 2 revisions

The isArray() method determines whether the tested object is Array.

Syntax

var isArray = Mint.utils.isArray([]);

Parameters

  • value - (object) An object for check.

Return Value

true if the tested object is Array; otherwise, false.

Examples

Mint.utils.isArray([1, 2, 3]);      // true
Mint.utils.isArray(new array());    // true
Mint.utils.isArray("a");            // false
Mint.utils.isArray(null);           // false

Clone this wiki locally