Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/append/docs/types/index.d"

Index

Functions

Functions

Export assignment append

  • Adds elements from one collection to the end of another collection.

    Parameters

    Returns Collection

    updated collection

    Example

    var arr = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];
    
    arr = append( arr, [ 6.0, 7.0 ] );
    // returns [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ]

    Example

    var Float64Array = require( `@stdlib/array/float64` );
    
    var arr = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
    // returns <Float64Array>[ 1.0, 2.0, 3.0, 4.0, 5.0 ]
    
    arr = append( arr, [ 6.0, 7.0 ] );
    // returns <Float64Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ]