Created
March 14, 2019 21:01
-
-
Save nqxcode/0b889a095263e5648b6da1d14c038622 to your computer and use it in GitHub Desktop.
Javascript flipMatrix
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
function flipMatrix(matrix) { | |
return matrix[0].map(function(column, index) { | |
return matrix.map(function(row) { | |
return row[index]; | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment