Appearance
类似 union,但是接受一个 iteratee 调用每个元素。
union
iteratee
import { unionBy } from '@base-web-kits/base-tools-ts'; unionBy([2.1], [1.2, 2.3], Math.floor); // 结果: [2.1, 1.2]
arrays (...Array)
iteratee (Function)
(Array)