Skip to content

Instantly share code, notes, and snippets.

@uhtred
Created July 12, 2017 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uhtred/b3b1a0fb712b2ddc03624e33c7620bf3 to your computer and use it in GitHub Desktop.
Save uhtred/b3b1a0fb712b2ddc03624e33c7620bf3 to your computer and use it in GitHub Desktop.
triangulo da sorte
var numbers = [];
$('.sorteioItem').eq(3).find('.numberDicker').each(function(i, item){
numbers.push(parseInt($(this).text()));
})
console.log( numbers.sort(function(a, b) {
return a - b;
}).join(', '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment