Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- searchFilterFunction = text => {
- const newData = this.arrayholder.filter(item => {
- const itemData = `${item.id}`;
- const textData = text;
- return itemData.indexOf(textData) > -1;
- });
- this.setState({ data: newData });
- };
Add Comment
Please, Sign In to add comment