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:
737 bytes
|
Line | |
---|
1 | var invoker =
|
---|
2 | /*#__PURE__*/
|
---|
3 | require("./invoker.js");
|
---|
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 |
|
---|
25 | var join =
|
---|
26 | /*#__PURE__*/
|
---|
27 | invoker(1, 'join');
|
---|
28 | module.exports = join; |
---|
Note:
See
TracBrowser
for help on using the repository browser.