Data update

This commit is contained in:
Ingy döt Net 2025-06-11 20:16:52 -04:00
parent 72eb4943cb
commit 4d5544505c
2347 changed files with 62432 additions and 16731 deletions

View file

@ -1,5 +1,5 @@
Array.prototype.timeoutSort = function (f) {
this.forEach(function (n) {
setTimeout(function () { f(n) }, 5 * n)
});
}
Object.defineProperty(Array.prototype, "timeoutSort", {
value(f) {
this.forEach(n => setTimeout(() => f(n), 5 * n))
}
})

View file

@ -1 +1 @@
[1, 9, 8, 7, 6, 5, 3, 4, 5, 2, 0].timeoutSort(function(n) { document.write(n + '<br>'); })
[1, 9, 8, 7, 6, 5, 3, 4, 5, 2, 0].timeoutSort(n => document.write(n + '<br>'))