filterBy() {
        return map(this, 'filterBy', arguments);
    }
Filter all nodes matching the given predicate.

@param {string|function} predicate State flag or custom function.
@return {TreeNodes} Array of node objects.