Nodejs Array Clean cleanclean()

Here you can find the source of cleanclean()

Method Source Code

Array.prototype.clean = function clean() {
  return this.filter(function(item){ return item });
};

Related

  1. clean(deleteValue)
    Array.prototype.clean = function(deleteValue) {
        for (var i = 0; i < this.length; i++) {
            if (this[i] == deleteValue) {
                this.splice(i, 1);
                i--;
        return this;
    };
    ...
    
  2. clean(deleteValue)
    Array.prototype.clean = function(deleteValue) {
      for (var i = 0; i < this.length; i++) {
        if (this[i] == deleteValue) {
          this.splice(i, 1);
          i--;
      return this;
    };
    ...
    
  3. clean(deleteValue)
    var CURRENTTV = 1;
    var TYPE_TV_AD = 575;
    var TYPE_UPCOMING_EVENT = 574;
    var TYPE_PAST_EVENT = 576;
    Array.prototype.clean = function(deleteValue) {
      for (var i = 0; i < this.length; i++) {
        if (this[i] == deleteValue) {         
          this.splice(i, 1);
          i--;
    ...
    
  4. clean(s)
    Array.prototype.clean = function (s) {
        var i = 0;
        for (var i = 0; i < this.length; i++) {
            if (this.hasOwnProperty(i)) {
                if (this[i] == s) {
                    this.splice(i, 1);
                    i = i-1;
        return this;
    };
    
  5. cleanPV(deleteValue)
    Array.prototype.cleanPV = function(deleteValue) {
      for (var i = 0; i < this.length; i++) {
        if (this[i] == deleteValue) {         
          this.splice(i, 1);
          i--;
      return this;
    };
    ...
    
  6. cleanup()
    Array.prototype.cleanup = function () {
        var i = 0;
        while (i < this.length) {
            if (!this[i]) {
                this.splice(i,1);
            } else {
                i++;