mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
29 lines
731 B
TypeScript
29 lines
731 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/union.js
|
|
|
|
|
|
import _concat from './internal/_concat.js';
|
|
import _curry2 from './internal/_curry2.js';
|
|
import compose from './compose.js';
|
|
import uniq from './uniq.js';
|
|
|
|
|
|
/**
|
|
* Combines two lists into a set (i.e. no duplicates) composed of the elements
|
|
* of each list.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category Relation
|
|
* @sig [*] -> [*] -> [*]
|
|
* @param {Array} as The first list.
|
|
* @param {Array} bs The second list.
|
|
* @return {Array} The first and second lists concatenated, with
|
|
* duplicates removed.
|
|
* @example
|
|
*
|
|
* R.union([1, 2, 3], [2, 3, 4]); //=> [1, 2, 3, 4]
|
|
*/
|
|
var union = _curry2(compose(uniq, _concat));
|
|
export default union;
|