MCPcopy Create free account
hub / github.com/microsoft/SandDance / findElementRecursive

Function findElementRecursive

docs/app/js/sanddance-app.js:23753–23756  ·  view source on GitHub ↗
(element, matchFunction)

Source from the content-addressed store, hash-verified

23751 */ parcelHelpers.export(exports, "findElementRecursive", ()=>findElementRecursive);
23752var _getParent = require("./getParent");
23753function findElementRecursive(element, matchFunction) {
23754 if (!element || element === document.body) return null;
23755 return matchFunction(element) ? element : findElementRecursive((0, _getParent.getParent)(element), matchFunction);
23756}
23757
23758},{"./getParent":"gp02N","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"6Mnks":[function(require,module,exports) {
23759var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected