Skip to content

Instantly share code, notes, and snippets.

@adampash
Created October 7, 2013 16:30
Show Gist options
  • Save adampash/6870842 to your computer and use it in GitHub Desktop.
Save adampash/6870842 to your computer and use it in GitHub Desktop.
matrix = {
digit: 1,
row: 3,
column: 4,
arrays: {
cellAray: [0,0,0,1],
rowArray: [0,0,1,0],
columnArray: [0,0,0,1],
blockArray: [0,0,0,1]
}
}
for (array in matrix.arrays) {
console.log(array, matrix.arrays[array]);
this_array = matrix.arrays[array];
this_array.forEach(function(value, index) {
console.log(index, value);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment