Created
December 20, 2017 04:38
-
-
Save mgmgpyaesonewin/c901e00ff915f31c58219538de0f4680 to your computer and use it in GitHub Desktop.
determine the location of an item 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
indexOf: function(arr, item) { | |
return arr.indexOf(item); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment