json-dom
    Preparing search index...

    Function gatherChildItems

    • A selector function for retrieving existing child domGeneral.DomItems from the given parent item. This function will check all the children starting from and including item, and run the test function on each child encountered. The return array contains children returned from the test from all levels. WARNING: This is a recursive function.

      Parameters

      • item: DomItem

        The DomItem which may have child items matching the attribute criteria

      • test: ChildTest

        Assess each child, and return the ones which qualify

      Returns DomItem[]