flatten() {
        return map(this, 'flatten', arguments);
    }
Flatten and get only node(s) matching the expected state or predicate function.

@param {string|function} predicate State property or custom function.
@return {TreeNodes} Flat array of matching nodes.