mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
16 lines
293 B
TypeScript
16 lines
293 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_includesWith.js
|
|
|
|
|
|
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;
|
|
}
|