Created
December 10, 2015 03:53
-
-
Save meteormanaged/686267ece61b899c49e4 to your computer and use it in GitHub Desktop.
find object in an array.
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 arrayFind = (index, val, items) => items.filter(e => e[index] === val ? e : false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment