Created
July 18, 2019 18:04
-
-
Save chalu/870f5c7fd0cd7ba6dc7ba7dc3e7c4fc2 to your computer and use it in GitHub Desktop.
This file contains 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
const match = (field, delegate) => { | |
return (data = []) => { | |
return data.filter(entry => delegate(entry[field])); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment