JSFiddle - React, Tailwind, and code Playground

by Darby Rathbone

JavaScript

Uint8Array.prototype.map = Array.prototype.map;
var tyarray = new Uint8Array(9 * 9);


tyarray = tyarray.map(function (a, i, a) {
    a[i] = i;
    return i;
});
(function generateSudoku() {
    var rows = [];
    rows.length = 9
    console.dir(rows.splice(3, 0));
    rows = rows.map(function (e, i, a) {
        a[i] = (new Array(9));
        return a[i];
    });
    console.dir(rows[1]);
    //function getValidNumbers(x,y);  

})();