Javascript Array removePlayerNamed(fn)

Description

Javascript Array removePlayerNamed(fn)

Array.prototype._removePlayerNamed = function(fn){
  var a = []/*from ww  w . j a  va2  s . c o  m*/
  if(this instanceof Array){
    this.map(
      function(u){
        if(u.FULLNAME!=fn){
          a.push(u)
        }
      }
    )
  }
  return a
}



PreviousNext

Related