Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function flipMatrix(matrix) {
- return matrix[0].map(function(column, index) {
- return matrix.map(function(row) {
- return row[index];
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement