Created
June 23, 2015 08:42
-
-
Save stoimen/21f1496da3488e2c8c9c 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
var sequential = function(list, item) { | |
for (var i = 0, l = list.length; i < l; i++) { | |
if (list[i] == item) { | |
return i; | |
} | |
} | |
return -1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment