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