JS: Update OK-style comments to $-style

This commit is contained in:
Asger F
2025-02-06 13:34:01 +01:00
parent 7e5c24a8ec
commit 9be041e27d
536 changed files with 4408 additions and 4762 deletions

View File

@@ -1,5 +1,4 @@
// NOT OK
function sum(xs, start) {
function sum(xs, start) { // $ Alert
if (arguments.length < 2)
start = 0;
@@ -10,7 +9,7 @@ function sum(xs, start) {
return sum;
}
// OK
function sum(xs, start) {
if (typeof start === 'undefined')
start = 0;
@@ -22,7 +21,7 @@ function sum(xs, start) {
return sum;
}
// OK
function sum(xs, _start) {
var start = arguments.length < 2 ? _start : 0;