Created
September 5, 2018 06:28
-
-
Save u-r-w/d19cda03d20ad6aca6ff5a1a51509a9a to your computer and use it in GitHub Desktop.
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
export const contains = ({ name, date, place }, query) => { | |
if ( | |
name.toLowerCase().includes(query) || | |
date.toLowerCase().includes(query) || | |
place.toLowerCase().includes(query) || | |
name.includes(query) || | |
date.includes(query) || | |
place.includes(query) | |
) { | |
return true | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment