forked from waja/action-debian-package
14 lines
210 B
JavaScript
14 lines
210 B
JavaScript
export default function _includesWith(pred, x, list) {
|
|
var idx = 0;
|
|
var len = list.length;
|
|
|
|
while (idx < len) {
|
|
if (pred(x, list[idx])) {
|
|
return true;
|
|
}
|
|
|
|
idx += 1;
|
|
}
|
|
|
|
return false;
|
|
} |