mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
28 lines
771 B
TypeScript
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;
|