Last active
August 3, 2017 17:19
-
-
Save cdaz5/c759e3ce584caf0547e649e93a1e7687 to your computer and use it in GitHub Desktop.
Fuzzy Search Includes Version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sortBySearchTerm = () => { | |
return this.props.transactions.filter(transaction => { | |
return transaction.category.includes(this.props.searchTerm) || transaction.description.includes(this.props.searchTerm) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment