Simple JavaScript function that returns true if is an array or false if it’s not ;)

function isArray(obj) {
     if (obj.constructor.toString().indexOf("Array") == -1)
	      return false;
     else return true;
}