function stringSearch(key, searchQuery, node, path, treeIndex) {
    if (typeof node[key] === 'function') {
        return String(node[key]({ node, path, treeIndex })).indexOf(searchQuery) > -1;
    } else if (typeof node[key] === 'object') {
        return getReactElementText(node[key]).indexOf(searchQuery) > -1;
    }

    return node[key] && String(node[key]).indexOf(searchQuery) > -1;
}
// Search for a query string inside a node property
Search for a query string inside a node property
Search for a query string inside a node property
function stringSearch(key, searchQuery, node, path, treeIndex) {
    if (typeof node[key] === 'function') {
        return String(node[key]({ node, path, treeIndex })).indexOf(searchQuery) > -1;
    } else if (typeof node[key] === 'object') {
        return getReactElementText(node[key]).indexOf(searchQuery) > -1;
    }
    return node[key] && String(node[key]).indexOf(searchQuery) > -1;
}
function stringSearch ( key , searchQuery , node , path , treeIndex ) { if ( typeof node [ key ] === 'function' ) { return String ( node [ key ] ( { node , path , treeIndex } ) ) . indexOf ( searchQuery ) > - 1 ; } else if ( typeof node [ key ] === 'object' ) { return getReactElementText ( node [ key ] ) . indexOf ( searchQuery ) > - 1 ; } return node [ key ] && String ( node [ key ] ) . indexOf ( searchQuery ) > - 1 ; }
Search for a query string inside a node property
Search for a query string inside a node property