Files
NapCatQQ/.pnpm-store/v3/files/f7/2dff3ecf9f203118df8927c391a7c71a283d0e7589e60b80d3e749d1e073e4b8353dd67c05e96b2401a45990843ad5732211b224617841b447f60b519eff2c
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
617 B
Plaintext

import baseEach from './_baseEach.js';
/**
* The base implementation of `_.some` without support for iteratee shorthands.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {boolean} Returns `true` if any element passes the predicate check,
* else `false`.
*/
function baseSome(collection, predicate) {
var result;
baseEach(collection, function(value, index, collection) {
result = predicate(value, index, collection);
return !result;
});
return !!result;
}
export default baseSome;