Javascript Array inArray(e) method

Description

Javascript Array inArray(e) method

Array.prototype.inArray = function(e) {
    for (var i in this){
        if (this[i]===e) return true;
    }/*  www . j  ava 2 s  .  c o m*/
    return false;
}



PreviousNext

Related