1 | var invoker =
|
2 | /*#__PURE__*/
|
3 | require("./invoker");
|
4 | /**
|
5 | * Splits a string into an array of strings based on the given
|
6 | * separator.
|
7 | *
|
8 | * @func
|
9 | * @memberOf R
|
10 | * @since v0.1.0
|
11 | * @category String
|
12 | * @sig (String | RegExp) -> String -> [String]
|
13 | * @param {String|RegExp} sep The pattern.
|
14 | * @param {String} str The string to separate into an array.
|
15 | * @return {Array} The array of strings from `str` separated by `sep`.
|
16 | * @see R.join
|
17 | * @example
|
18 | *
|
19 | * const pathComponents = R.split('/');
|
20 | * R.tail(pathComponents('/usr/local/bin/node')); //=> ['usr', 'local', 'bin', 'node']
|
21 | *
|
22 | * R.split('.', 'a.b.c.xyz.d'); //=> ['a', 'b', 'c', 'xyz', 'd']
|
23 | */
|
24 |
|
25 |
|
26 | var split =
|
27 | /*#__PURE__*/
|
28 | invoker(1, 'split');
|
29 | module.exports = split; |
\ | No newline at end of file |