decord/source/6852_arrayIncludesWith.js

22 lines
391 B
JavaScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 6852
// Function ID: 54152
2026-07-20 16:05:17 +00:00
// Name: arrayIncludesWith
// Dependencies: []
2026-07-24 07:16:23 +00:00
// Module 6852 (arrayIncludesWith)
2026-07-20 16:05:17 +00:00
export default function arrayIncludesWith(arg0, arg1, arg2) {
let num = 0;
if (null != arg0) {
num = arg0.length;
}
let num2 = 0;
if (0 < num) {
while (!arg2(arg1, arg0[num2])) {
num2 = num2 + 1;
}
return true;
}
return false;
};