@newdash/newdash
Version:
javascript/typescript utility library
15 lines (14 loc) • 412 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.arraySome = void 0;
function arraySome(array, predicate) {
var index = -1, length = array == null ? 0 : array.length;
while (++index < length) {
if (predicate(array[index], index, array)) {
return true;
}
}
return false;
}
exports.arraySome = arraySome;
exports.default = arraySome;