Nodejs Array Append Item Append( arr )

Here you can find the source of Append( arr )

Method Source Code

Array.prototype.Append = function( arr )
{
    for ( var i = 0; i < arr.length; i++ )
        this.push( arr[ i ] );//from   w  ww  . ja va  2s .c  om
};

Related

  1. append(item)
    Array.prototype.append = function(item) {
      for (let i = 0; i !== this.length; i++) {
        if (this[i] === null || this[i] === undefined) {
          this[i] = item;
          return i;
      return this.push(item) - 1;
    };
    ...
    
  2. append(item)
    Array.prototype.append = function (item) {
        this.push(item);
        return this;
    };
    
  3. append(obj,nodup)
    Array.prototype.append=function(obj,nodup){
      if (!(nodup && this.contains(obj))){
        this[this.length]=obj;
    
  4. appendUniqueObj(oneItem)
    Array.prototype.appendUniqueObj = function(oneItem)
      if (!this.contains(oneItem))
        this[this.length] = oneItem;
    
  5. append_all(from)
    Array.prototype.append_all=function(from) {
      for(var i=0;i<from.length;i++) {
        this.append(from[i]);
      return this;
    
  6. AddItem( item )
    Array.prototype.AddItem = function( item )
      var i = this.length ;
      this[ i ] = item ;
      return i ;
    
  7. add(a2)
    Array.prototype.add = function(a2) {
      var l1 = this.length;
      var l2 = a2.length;
      var len = (l1 < l2 ? l1 : l2);
      var result = new Array(len);
      for (var i = 0; i < len; i++) {
        result[i] = this[i] + a2[i];
      return result;
    ...
    
  8. add(e)
    Array.prototype.add = function (e) {
        this.push(e);
    };
    
  9. add(el)
    Array.prototype.add = function(el) {
      this.push(el);
      return this;
    };