blob: 19d30727e2a2bea0bed9cffba2d1e5c408147ad2 [file] [log] [blame]
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;
}
module.exports = _includesWith;