mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
32 lines
855 B
JavaScript
32 lines
855 B
JavaScript
import _curry2 from './_curry2.js';
|
|
import _reduced from './_reduced.js';
|
|
import _xfBase from './_xfBase.js';
|
|
|
|
var XFind = /*#__PURE__*/function () {
|
|
function XFind(f, xf) {
|
|
this.xf = xf;
|
|
this.f = f;
|
|
this.found = false;
|
|
}
|
|
XFind.prototype['@@transducer/init'] = _xfBase.init;
|
|
XFind.prototype['@@transducer/result'] = function (result) {
|
|
if (!this.found) {
|
|
result = this.xf['@@transducer/step'](result, void 0);
|
|
}
|
|
return this.xf['@@transducer/result'](result);
|
|
};
|
|
XFind.prototype['@@transducer/step'] = function (result, input) {
|
|
if (this.f(input)) {
|
|
this.found = true;
|
|
result = _reduced(this.xf['@@transducer/step'](result, input));
|
|
}
|
|
return result;
|
|
};
|
|
|
|
return XFind;
|
|
}();
|
|
|
|
var _xfind = /*#__PURE__*/_curry2(function _xfind(f, xf) {
|
|
return new XFind(f, xf);
|
|
});
|
|
export default _xfind; |