Javascript Array ifArrayInArray(element)

Description

Javascript Array ifArrayInArray(element)


Array.prototype.ifArrayInArray = function(element) { 
 for(var i=0; i < this.length; i++) { 
  if(this[i].equals(element)) return true;
 }
 return false;//from ww  w .  j  a  v  a  2 s.c o m
};



PreviousNext

Related