Skip to content

Instantly share code, notes, and snippets.

@adipasquale
Created August 24, 2012 15:09
Show Gist options
  • Save adipasquale/3451850 to your computer and use it in GitHub Desktop.
Save adipasquale/3451850 to your computer and use it in GitHub Desktop.
test grid has unique numbers
var grid = [
[9, 13, 43, 65, 67],
[61, 19, 54, 34, 24],
[23, 32, 55, 90, 26],
[33, 25, 15, 46, 12],
[14, 27, 17, 46, 22] ];
var balls = [];
_.each(grid, function(line){_.each(line, function(ball){balls.push(ball);}) });
_.uniq(balls).length == balls.length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment