Appearance
类似 unzip,但是接受一个 iteratee 指定重组方式。
unzip
iteratee
import { unzipWith } from '@base-web-kits/base-tools-ts'; const zipped = [ [1, 10, 100], [2, 20, 200], ]; unzipWith(zipped, (a, b) => a + b); // 结果: [3, 30, 300]
array (Array)
iteratee (Function)
(Array)