/**
* @module @svizzle/utils/array_proto-string
*/
import * as _ from 'lamb';
/**
* Return an string by joining the provided array with the provided separator
* @see
{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join|Array.prototype.join},
{@link https://ascartabelli.github.io/lamb/module-lamb.html#joinWith|joinWith}
*
* @function
* @arg {array} array
* @arg {string} separator
* @return {string}
*
* @example
> join([0, 1, 2], '-')
'0-1-2'
*
* @since 0.1.0
*/
export const join = _.generic(Array.prototype.join);