function createMatrix(width, height) {
    let matrix = new Array(width);
    for (let i = 0; i < width; i++) {
        matrix[i] = new Array(height);
    }
    return matrix;
}
/**
 * Creates an empty matrix of the specified size
 */
Creates an empty matrix of the specified size
Creates an empty matrix of the specified size
function createMatrix(width, height) {
    let matrix = new Array(width);
    for (let i = 0; i < width; i++) {
        matrix[i] = new Array(height);
    }
    return matrix;
}
function createMatrix ( width , height ) { let matrix = new Array ( width ) ; for ( let i = 0 ; i < width ; i ++ ) { matrix [ i ] = new Array ( height ) ; } return matrix ; }
Creates an empty matrix of the specified size
Creates an empty matrix of the specified size