Strings.join()

Combine an array of strings into one new string.

Usage

Hover over inputs/exits for more info.

var Strings = require('machinepack-strings');


// Combine an array of strings into one new string.

Strings.join({

strings: [ 'foo' ],

separator: ',',

}).execSync();

Inputs

strings required

The array of strings to join.

[ 'foo' ]
separator

The optional separator to insert between each string.

','

Exits

error

An unexpected error occurred.

success

OK.

'foo'