Nodejs Utililty Methods Array Remove by Value

List of utility methods to do Array Remove by Value

Description

The list of methods to do Array Remove by Value are organized into topic(s).

Method

removeData(oneItem)
Array.prototype.removeData = function(oneItem)
  var index = dojo.indexOf(this, oneItem);
  if (index != -1)
    return this.splice(index, 1);
  return this;
removeEle(ele)
Array.prototype.removeEle = function(ele){
    var arr = this;
    console.log(arr);
    console.log(ele)
    this.pop(ele);
    return arr;
removeElement(param)
Array.prototype.removeElement = function (param) {
    for(var i = this.length; i--;){
        if (this[i] === param) this.splice(i, 1);
var arr = [3,5,3,22,663,11,8,3];
arr.removeElement(3);
console.log(arr);