source: node_modules/ramda/es/join.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 717 bytes
Line 
1import invoker from "./invoker.js";
2/**
3 * Returns a string made by inserting the `separator` between each element and
4 * concatenating all the elements into a single string.
5 *
6 * @func
7 * @memberOf R
8 * @since v0.1.0
9 * @category List
10 * @sig String -> [a] -> String
11 * @param {Number|String} separator The string used to separate the elements.
12 * @param {Array} xs The elements to join into a string.
13 * @return {String} str The string made by concatenating `xs` with `separator`.
14 * @see R.split
15 * @example
16 *
17 * const spacer = R.join(' ');
18 * spacer(['a', 2, 3.4]); //=> 'a 2 3.4'
19 * R.join('|', [1, 2, 3]); //=> '1|2|3'
20 */
21
22var join =
23/*#__PURE__*/
24invoker(1, 'join');
25export default join;
Note: See TracBrowser for help on using the repository browser.