- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
12 lines
337 B
JavaScript
12 lines
337 B
JavaScript
function findIndex(arr, predicate, fromIndex) {
|
|
if (fromIndex === void 0) { fromIndex = 0; }
|
|
for (var i = fromIndex; i < arr.length; i++) {
|
|
if (predicate(arr[i], i)) {
|
|
// 找到终止循环
|
|
return i;
|
|
}
|
|
}
|
|
return -1;
|
|
}
|
|
export default findIndex;
|
|
//# sourceMappingURL=find-index.js.map
|