UNPKG

matrix-rotate

Version:

Rotate a 2D matrix by 90 degrees clockwise with one command

11 lines (9 loc) 211 B
/** * Matrix Rotation in Node.js * Graeme Boy (2014) */ /** * Export the module's rotating function, * which takes in a square matrix as a parameter. */ module.exports = require('./lib/rotateMatrix.js');