buildfiles

This commit is contained in:
2026-04-13 08:19:53 +08:00
parent 273c8e8153
commit 51615a6859
54130 changed files with 6270898 additions and 30 deletions

25
node_modules/es-toolkit/dist/compat/array/unzipWith.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const unzip = require('../../array/unzip.js');
const isArray = require('../predicate/isArray.js');
const isArrayLikeObject = require('../predicate/isArrayLikeObject.js');
function unzipWith(array, iteratee) {
if (!isArrayLikeObject.isArrayLikeObject(array) || !array.length) {
return [];
}
const unziped = isArray.isArray(array) ? unzip.unzip(array) : unzip.unzip(Array.from(array, value => Array.from(value)));
if (!iteratee) {
return unziped;
}
const result = new Array(unziped.length);
for (let i = 0; i < unziped.length; i++) {
const value = unziped[i];
result[i] = iteratee(...value);
}
return result;
}
exports.unzipWith = unzipWith;