Created
July 17, 2018 12:38
-
-
Save wholypantalones/269d7b63a696ed84fd9cc3d68c40255f to your computer and use it in GitHub Desktop.
Find index
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
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex | |
arr.findIndex((el) => { | |
return el.val === another.val; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment