kevinrodrigues / IsArray

Checks if a value is an array.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IsArray

Checks if a value is an array, by returning a boolean value. (Taken from the "Good Parts:JS")

Example 1:

is_array(obj); // false
is_array(data); // true

Example 2 (A more full proof version):

is_arrayForSure(obj);  // false
is_arrayForSure(data);  // true

About

Checks if a value is an array.


Languages

Language:JavaScript 61.6%Language:HTML 38.4%