UNPKG

eris-keys

Version:

a JavaScript client library for eris-keys

25 lines (22 loc) 647 B
var _concat = require('./internal/_concat'); var _curry2 = require('./internal/_curry2'); var compose = require('./compose'); var uniq = 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] */ module.exports = _curry2(compose(uniq, _concat));