swc/crates/swc_bundler/tests/.cache/deno/d3344efb9da95e08758beadfdf7b40164049e343.ts
2021-11-09 20:42:49 +09:00

28 lines
771 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/join.js
import invoker from './invoker.js';
/**
* Returns a string made by inserting the `separator` between each element and
* concatenating all the elements into a single string.
*
* @func
* @memberOf R
* @since v0.1.0
* @category List
* @sig String -> [a] -> String
* @param {Number|String} separator The string used to separate the elements.
* @param {Array} xs The elements to join into a string.
* @return {String} str The string made by concatenating `xs` with `separator`.
* @see R.split
* @example
*
* const spacer = R.join(' ');
* spacer(['a', 2, 3.4]); //=> 'a 2 3.4'
* R.join('|', [1, 2, 3]); //=> '1|2|3'
*/
var join = invoker(1, 'join');
export default join;