Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit a0b1479

Browse files
Change BrE spellings to AmE spellings (#2891)
1 parent 4b1e6dd commit a0b1479

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
function sanitise(x) {
1+
function sanitize(x) {
22
if (isNaN(x)) {
33
return NaN;
44
}
55
return x;
66
}
77

8-
console.log(sanitise('1'));
8+
console.log(sanitize('1'));
99
// Expected output: "1"
1010

11-
console.log(sanitise('NotANumber'));
11+
console.log(sanitize('NotANumber'));
1212
// Expected output: NaN

0 commit comments

Comments
 (0)