@opentiny/vue-renderless
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
22 lines (21 loc) • 439 B
JavaScript
import "../../../chunk-G2ADBYYC.js";
import eachTree from "./eachTree";
const filterTree = (obj, iterate, options, context) => {
let result = [];
if (obj && iterate) {
eachTree(
obj,
(...args) => {
if (iterate.apply(context, args)) {
result.push(args[0]);
}
},
options
);
}
return result;
};
var filterTree_default = filterTree;
export {
filterTree_default as default
};