"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deepMultipleFind = void 0;
const deepMultipleFind = (tree, callback) => {
    const result = [];
    for (const item of tree) {
        if (callback(item)) {
            result.push(item);
        }
        if (item.children) {
            result.push(...(0, exports.deepMultipleFind)(item.children, callback));
        }
    }
    return result;
};
exports.deepMultipleFind = deepMultipleFind;
