This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tetris/utils.js
T

13 lines
287 B
JavaScript

function createArray(length) {
var a = new Array(length || 0);
if (arguments.length > 1) {
var args = Array.prototype.slice.call(arguments, 1);
for (var i = 0; i < length; i++) {
a[i] = createArray.apply(this, args);
}
}
return a;
}