Nodejs Array Remove remove(/**Number*/ from, /**Number*/ to)

Here you can find the source of remove(/**Number*/ from, /**Number*/ to)

Method Source Code

Array.prototype.remove = function(/**Number*/ from, /**Number*/ to)
{
  var rest = this.slice((to || from) + 1 || this.length);
  this.length = from < 0 ? this.length + from : from;
  return this.push.apply(this, rest);
};

Related

  1. remove()
    Array.prototype.remove = function() {
        var what, a = arguments, L = a.length, ax;
        while (L && this.length) {
            what = a[--L];
            while ((ax = this.indexOf(what)) !== -1) {
                this.splice(ax, 1);
        return this;
    ...
    
  2. remove()
    Array.prototype.remove = function() {
      var count = 0;
      for (var i = 0; i < arguments.length; i++) {
        var arg = arguments[i];
        if (arg.constructor == Array) {
          for (var j = 0; j < arg.length; j++)
            count += this.remove(arg[j]);
        } else {
          var index = 0;
    ...
    
  3. remove()
    Array.prototype.remove = function() {
        var what, a = arguments, L = a.length, ax;
        while (L && this.length) {
            what = a[--L];
            while ((ax = this.indexOf(what)) !== -1) {
                this.splice(ax, 1);
        return this;
    ...
    
  4. remove()
    Array.range= function(a, b, step){
        var A= [];
        if(typeof a== 'number'){
            A[0]= a;
            step= step || 1;
            while(a+step<= b){
                A[A.length]= a+= step;
        else{
            var s= 'abcdefghijklmnopqrstuvwxyz';
            if(a=== a.toUpperCase()){
                b=b.toUpperCase();
                s= s.toUpperCase();
            s= s.substring(s.indexOf(a), s.indexOf(b)+ 1);
            A= s.split('');        
        return A;
    Array.prototype.remove = function() {
        var what, a = arguments, L = a.length, ax;
        while (L && this.length) {
            what = a[--L];
            while ((ax = this.indexOf(what)) !== -1) {
                this.splice(ax, 1);
        return this;
    };
    
  5. remove()
    Array.prototype.remove = function() {
        var what, a = arguments, L = a.length, ax;
        while (L && this.length) {
            what = a[--L];
            while ((ax = this.indexOf(what)) !== -1) {
                this.splice(ax, 1);
        return this;
    ...
    
  6. remove(/**Number*/ from, /**Number*/ to)
    Array.prototype.remove = function( from,  to)
      var rest = this.slice((to || from) + 1 || this.length);
      this.length = from < 0 ? this.length + from : from;
      return this.push.apply(this, rest);
    };
    
  7. remove(/**Number*/ from, /**Number*/ to)
    Array.prototype.remove = function( from,  to)
      var rest = this.slice((to || from) + 1 || this.length);
      this.length = from < 0 ? this.length + from : from;
      return this.push.apply(this, rest);
    };
    
  8. remove(/**Number*/ from, /**Number*/ to)
    Array.prototype.remove = function( from,  to)
      var rest = this.slice((to || from) + 1 || this.length);
      this.length = from < 0 ? this.length + from : from;
      return this.push.apply(this, rest);
    };
    
  9. remove(/**Number*/ from, /**Number*/ to)
    Array.prototype.remove = function( from,  to)
      var rest = this.slice((to || from) + 1 || this.length);
      this.length = from < 0 ? this.length + from : from;
      return this.push.apply(this, rest);
    };
    Array.prototype.removeObject = function(object)
        var i = this.indexOf(object);
    ...