GoonCord/src/lib/utils/findInReactTree.ts
2024-02-28 14:09:42 +08:00

6 lines
No EOL
266 B
TypeScript

import { findInTree } from "@lib/utils";
import { SearchFilter } from "./findInTree";
export const findInReactTree = (tree: { [key: string]: any }, filter: SearchFilter): any => findInTree(tree, filter, {
walkable: ["props", "children", "child", "sibling"],
});