UNPKG

734 BJavaScriptView Raw
1var invoker =
2/*#__PURE__*/
3require("./invoker");
4/**
5 * Returns a string made by inserting the `separator` between each element and
6 * concatenating all the elements into a single string.
7 *
8 * @func
9 * @memberOf R
10 * @since v0.1.0
11 * @category List
12 * @sig String -> [a] -> String
13 * @param {Number|String} separator The string used to separate the elements.
14 * @param {Array} xs The elements to join into a string.
15 * @return {String} str The string made by concatenating `xs` with `separator`.
16 * @see R.split
17 * @example
18 *
19 * const spacer = R.join(' ');
20 * spacer(['a', 2, 3.4]); //=> 'a 2 3.4'
21 * R.join('|', [1, 2, 3]); //=> '1|2|3'
22 */
23
24
25var join =
26/*#__PURE__*/
27invoker(1, 'join');
28module.exports = join;
\No newline at end of file