swc/bundler/tests/.cache/deno/4574739cf95aae7e28811fe54088d62720e1f4c5.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

15 lines
390 B
TypeScript

// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/polyfills/find.js
/* eslint-disable no-redeclare */
// $FlowFixMe
const find = Array.prototype.find ? function (list, predicate) {
return Array.prototype.find.call(list, predicate);
} : function (list, predicate) {
for (const value of list) {
if (predicate(value)) {
return value;
}
}
};
export default find;