Arrays.concat()

Combine (aka concatenate) two arrays into a single array- one in front of the other.

Warning: Both arrays must be homogeneous, and their items must have matching/compatible types. Also, both arrays must be JSON-compatible.

Usage

Hover over inputs/exits for more info.

var Arrays = require('machinepack-arrays');


// Combine (aka concatenate) two arrays into a single array- one in front of the other.

Arrays.concat({

firstArray: [ '*' ],

secondArray: [ '*' ],

}).execSync();

Inputs

firstArray required

The first array

[ '*' ]
secondArray required

The second array

[ '*' ]

Exits

error

An unexpected error occurred.

success

OK.

(varies based on provided inputs)