Skip to content

Commit 15921c8

Browse files
authored
Fix grammar in Array.prototype.sort error documentation (mdn#43117)
Fix grammar in Array.prototype.sort error page
1 parent a1b98de commit 15921c8

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/javascript/reference/errors/array_sort_argument

1 file changed

+1
-1
lines changed

files/en-us/web/javascript/reference/errors/array_sort_argument/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ page-type: javascript-error
55
sidebar: jssidebar
66
---
77

8-
The JavaScript exception "invalid Array.prototype.sort argument" occurs when the argument of {{jsxref("Array.prototype.sort()")}} (and its related methods: {{jsxref("Array.prototype.toSorted()")}}, {{jsxref("TypedArray.prototype.sort()")}}, {{jsxref("TypedArray.prototype.toSorted()")}}) isn't either {{jsxref("undefined")}} or a function which compares its operands.
8+
The JavaScript exception "invalid Array.prototype.sort argument" occurs when the argument of {{jsxref("Array.prototype.sort()")}} (and its related methods: {{jsxref("Array.prototype.toSorted()")}}, {{jsxref("TypedArray.prototype.sort()")}}, {{jsxref("TypedArray.prototype.toSorted()")}}) isn't either {{jsxref("undefined")}} or a function that compares its operands.
99

1010
## Message
1111

0 commit comments

Comments
 (0)