update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
41
node_modules/ramda/src/union.js
generated
vendored
Normal file
41
node_modules/ramda/src/union.js
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
var _concat =
|
||||
/*#__PURE__*/
|
||||
require("./internal/_concat");
|
||||
|
||||
var _curry2 =
|
||||
/*#__PURE__*/
|
||||
require("./internal/_curry2");
|
||||
|
||||
var compose =
|
||||
/*#__PURE__*/
|
||||
require("./compose");
|
||||
|
||||
var uniq =
|
||||
/*#__PURE__*/
|
||||
require("./uniq");
|
||||
/**
|
||||
* 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 =
|
||||
/*#__PURE__*/
|
||||
_curry2(
|
||||
/*#__PURE__*/
|
||||
compose(uniq, _concat));
|
||||
|
||||
module.exports = union;
|
||||
Loading…
Add table
Add a link
Reference in a new issue