Nodejs Array Skip skip(skipNumber)

Here you can find the source of skip(skipNumber)

Method Source Code

Array.prototype.skip = function(skipNumber){
   return this.slice(skipNumber);
};

Related

  1. skip(count)
    Array.prototype.skip = function (count) {
        return this.slice(count);
    };
    
  2. skipUntil(fun)
    Array.prototype.skipUntil = function (fun) {
        var result = new Array(), index = 0;
        while (!fun(this[index])) {
            index++;
        return this.skip(index);
    };
    
  3. skipWhile(fun)
    Array.prototype.skipWhile = function (fun) {
        var result = new Array(), index = 0;
        while (fun(this[index])) {
            index++;
        return this.skip(index);
    };
    
  4. skipWhile(predicate)
    Array.prototype.skipWhile = function (predicate) {
      predicate = predicate || Predicate;
      var l = this.length;
      var i = 0;
      for (i = 0; i < l; i++)
        if (predicate(this[i], i) === false) break;
      return this.skip(i);
    };