UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (7 loc) 251 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const uniqBy = require('./uniqBy.js'); function unionBy(arr1, arr2, mapper) { return uniqBy.uniqBy(arr1.concat(arr2), mapper); } exports.unionBy = unionBy;