bbo
Version:
bbo is a utility library of zero dependencies for javascript.
10 lines (7 loc) • 350 B
JavaScript
import { b as _toConsumableArray } from './internal/_rollupPluginBabelHelpers.js';
/**
* Returns every element that exists in any of the two arrays once
* Create a Set with all values of a and b and convert to an array.
*/
var union = (a, b) => Array.from(new Set([].concat(_toConsumableArray(a), _toConsumableArray(b))));
export default union;