Last active
August 29, 2015 14:00
-
-
Save KaduNovoK/d3662a57b748d2e13096 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
var teams = [1, 2, 3, 4, 5, 6, 7, 8, 9]; | |
teams.forEach(function(value1, idx1) { | |
teams.forEach(function(value2, idx2) { | |
if (idx2+1 > idx1+1) { | |
console.log(value1, value2) | |
} | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment