Skip to content

Commit 01bf58c

Browse files
Josh-Cenateoli2003
andauthored
Alphabetically order class members (#26057)
* Alphabetically order class members * Update files/en-us/web/javascript/reference/global_objects/string/index.md --------- Co-authored-by: Jean-Yves Perrier <[email protected]>
1 parent 09b358a commit 01bf58c

File tree

41 files changed

+198
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+198
-203
lines changed

files/en-us/web/javascript/reference/global_objects/aggregateerror/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The **`AggregateError`** object represents an error when several errors need to
1313

1414
## Constructor
1515

16-
- {{jsxref("Global_Objects/AggregateError/AggregateError", "AggregateError()")}}
16+
- {{jsxref("AggregateError/AggregateError", "AggregateError()")}}
1717
- : Creates a new `AggregateError` object.
1818

1919
## Instance properties

files/en-us/web/javascript/reference/global_objects/array/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@ f("a", "b"); // 'a+b'
255255

256256
## Static properties
257257

258-
- {{jsxref("Array/@@species", "get Array[@@species]")}}
258+
- {{jsxref("Array/@@species", "Array[@@species]")}}
259259
- : Returns the `Array` constructor.
260260

261261
## Static methods
262262

263263
- {{jsxref("Array.from()")}}
264264
- : Creates a new `Array` instance from an iterable or array-like object.
265-
- {{jsxref("Array.fromAsync()")}} {{experimental_inline}}
265+
- {{jsxref("Array.fromAsync()")}} {{Experimental_Inline}}
266266
- : Creates a new `Array` instance from an async iterable, iterable, or array-like object.
267267
- {{jsxref("Array.isArray()")}}
268268
- : Returns `true` if the argument is an array, or `false` otherwise.

files/en-us/web/javascript/reference/global_objects/arraybuffer/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ These features make resizing `ArrayBuffer`s more efficient — otherwise, you ha
2525

2626
## Constructor
2727

28-
- {{jsxref("ArrayBuffer.ArrayBuffer", "ArrayBuffer()")}}
28+
- {{jsxref("ArrayBuffer/ArrayBuffer", "ArrayBuffer()")}}
2929
- : Creates a new `ArrayBuffer` object.
3030

3131
## Static properties
3232

33-
- {{jsxref("ArrayBuffer.@@species", "get ArrayBuffer[@@species]")}}
33+
- {{jsxref("ArrayBuffer/@@species", "ArrayBuffer[@@species]")}}
3434
- : The constructor function that is used to create derived objects.
3535

3636
## Static methods
@@ -44,21 +44,21 @@ These properties are defined on `ArrayBuffer.prototype` and shared by all `Array
4444

4545
- {{jsxref("ArrayBuffer.prototype.byteLength")}}
4646
- : The size, in bytes, of the `ArrayBuffer`. This is established when the array is constructed and can only be changed using the {{jsxref("ArrayBuffer.prototype.resize()")}} method if the `ArrayBuffer` is resizable.
47+
- {{jsxref("Object/constructor", "ArrayBuffer.prototype.constructor")}}
48+
- : The constructor function that created the instance object. For `ArrayBuffer` instances, the initial value is the {{jsxref("ArrayBuffer/ArrayBuffer", "ArrayBuffer")}} constructor.
4749
- {{jsxref("ArrayBuffer.prototype.maxByteLength")}}
4850
- : The read-only maximum length, in bytes, that the `ArrayBuffer` can be resized to. This is established when the array is constructed and cannot be changed.
4951
- {{jsxref("ArrayBuffer.prototype.resizable")}}
5052
- : Read-only. Returns `true` if the `ArrayBuffer` can be resized, or `false` if not.
51-
- {{jsxref("Object/constructor", "ArrayBuffer.prototype.constructor")}}
52-
- : The constructor function that created the instance object. For `ArrayBuffer` instances, the initial value is the {{jsxref("ArrayBuffer/ArrayBuffer", "ArrayBuffer")}} constructor.
5353
- `ArrayBuffer.prototype[@@toStringTag]`
5454
- : The initial value of the [`@@toStringTag`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) property is the string `"ArrayBuffer"`. This property is used in {{jsxref("Object.prototype.toString()")}}.
5555

5656
## Instance methods
5757

58-
- {{jsxref("ArrayBuffer.prototype.slice()")}}
59-
- : Returns a new `ArrayBuffer` whose contents are a copy of this `ArrayBuffer`'s bytes from `begin` (inclusive) up to `end` (exclusive). If either `begin` or `end` is negative, it refers to an index from the end of the array, as opposed to from the beginning.
6058
- {{jsxref("ArrayBuffer.prototype.resize()")}}
6159
- : Resizes the `ArrayBuffer` to the specified size, in bytes.
60+
- {{jsxref("ArrayBuffer.prototype.slice()")}}
61+
- : Returns a new `ArrayBuffer` whose contents are a copy of this `ArrayBuffer`'s bytes from `begin` (inclusive) up to `end` (exclusive). If either `begin` or `end` is negative, it refers to an index from the end of the array, as opposed to from the beginning.
6262

6363
## Examples
6464

files/en-us/web/javascript/reference/global_objects/asynciterator/@@asynciterator/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: AsyncIterator.prototype[@@iterator]()
2+
title: AsyncIterator.prototype[@@asyncIterator]()
33
slug: Web/JavaScript/Reference/Global_Objects/AsyncIterator/@@asyncIterator
44
page-type: javascript-instance-method
55
browser-compat: javascript.builtins.AsyncIterator.@@asyncIterator

files/en-us/web/javascript/reference/global_objects/bigint/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,14 @@ Note that built-in operations expecting BigInts often truncate the BigInt to a f
268268

269269
## Constructor
270270

271-
- [`BigInt()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/BigInt)
271+
- {{jsxref("BigInt/BigInt", "BigInt()")}}
272272
- : Creates a new BigInt value.
273273

274274
## Static methods
275275

276-
- [`BigInt.asIntN()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN)
276+
- {{jsxref("BigInt.asIntN()")}}
277277
- : Clamps a BigInt value to a signed integer value, and returns that value.
278-
- [`BigInt.asUintN()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN)
278+
- {{jsxref("BigInt.asUintN()")}}
279279
- : Clamps a BigInt value to an unsigned integer value, and returns that value.
280280

281281
## Instance properties
@@ -289,11 +289,11 @@ These properties are defined on `BigInt.prototype` and shared by all `BigInt` in
289289

290290
## Instance methods
291291

292-
- [`BigInt.prototype.toLocaleString()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toLocaleString)
292+
- {{jsxref("BigInt.prototype.toLocaleString()")}}
293293
- : Returns a string with a language-sensitive representation of this BigInt value. Overrides the [`Object.prototype.toLocaleString()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString) method.
294-
- [`BigInt.prototype.toString()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString)
294+
- {{jsxref("BigInt.prototype.toString()")}}
295295
- : Returns a string representing this BigInt value in the specified radix (base). Overrides the [`Object.prototype.toString()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString) method.
296-
- [`BigInt.prototype.valueOf()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/valueOf)
296+
- {{jsxref("BigInt.prototype.valueOf()")}}
297297
- : Returns this BigInt value. Overrides the [`Object.prototype.valueOf()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf) method.
298298

299299
## Examples

files/en-us/web/javascript/reference/global_objects/bigint64array/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ The **`BigInt64Array`** typed array represents an array of 64-bit signed integer
1313

1414
## Constructor
1515

16-
- [`BigInt64Array()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt64Array/BigInt64Array)
16+
- {{jsxref("BigInt64Array/BigInt64Array", "BigInt64Array()")}}
1717
- : Creates a new `BigInt64Array` object.
1818

1919
## Static properties
2020

2121
_Also inherits static properties from its parent {{jsxref("TypedArray")}}_.
2222

23-
- {{jsxref("TypedArray.BYTES_PER_ELEMENT", "BigInt64Array.BYTES_PER_ELEMENT")}}
23+
- {{jsxref("TypedArray/BYTES_PER_ELEMENT", "BigInt64Array.BYTES_PER_ELEMENT")}}
2424
- : Returns a number value of the element size. `8` in the case of `BigInt64Array`.
2525

2626
## Static methods
@@ -33,7 +33,7 @@ _Also inherits instance properties from its parent {{jsxref("TypedArray")}}_.
3333

3434
These properties are defined on `BigInt64Array.prototype` and shared by all `BigInt64Array` instances.
3535

36-
- {{jsxref("TypedArray.BYTES_PER_ELEMENT", "BigInt64Array.prototype.BYTES_PER_ELEMENT")}}
36+
- {{jsxref("TypedArray/BYTES_PER_ELEMENT", "BigInt64Array.prototype.BYTES_PER_ELEMENT")}}
3737
- : Returns a number value of the element size. `8` in the case of a `BigInt64Array`.
3838
- {{jsxref("Object/constructor", "BigInt64Array.prototype.constructor")}}
3939
- : The constructor function that created the instance object. For `BigInt64Array` instances, the initial value is the {{jsxref("BigInt64Array/BigInt64Array", "BigInt64Array")}} constructor.

files/en-us/web/javascript/reference/global_objects/biguint64array/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ The **`BigUint64Array`** typed array represents an array of 64-bit unsigned inte
1313

1414
## Constructor
1515

16-
- [`BigUint64Array()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigUint64Array/BigUint64Array)
16+
- {{jsxref("BigUint64Array/BigUint64Array", "BigUint64Array()")}}
1717
- : Creates a new `BigUint64Array` object.
1818

1919
## Static properties
2020

2121
_Also inherits static properties from its parent {{jsxref("TypedArray")}}_.
2222

23-
- {{jsxref("TypedArray.BYTES_PER_ELEMENT", "BigUint64Array.BYTES_PER_ELEMENT")}}
23+
- {{jsxref("TypedArray/BYTES_PER_ELEMENT", "BigUint64Array.BYTES_PER_ELEMENT")}}
2424
- : Returns a number value of the element size. `8` in the case of `BigUint64Array`.
2525

2626
## Static methods
@@ -33,7 +33,7 @@ _Also inherits instance properties from its parent {{jsxref("TypedArray")}}_.
3333

3434
These properties are defined on `BigUint64Array.prototype` and shared by all `BigUint64Array` instances.
3535

36-
- {{jsxref("TypedArray.BYTES_PER_ELEMENT", "BigUint64Array.prototype.BYTES_PER_ELEMENT")}}
36+
- {{jsxref("TypedArray/BYTES_PER_ELEMENT", "BigUint64Array.prototype.BYTES_PER_ELEMENT")}}
3737
- : Returns a number value of the element size. `8` in the case of a `BigUint64Array`.
3838
- {{jsxref("Object/constructor", "BigUint64Array.prototype.constructor")}}
3939
- : The constructor function that created the instance object. For `BigUint64Array` instances, the initial value is the {{jsxref("BigUint64Array/BigUint64Array", "BigUint64Array")}} constructor.

files/en-us/web/javascript/reference/global_objects/boolean/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Truthy values are even more unlikely to be loosely equal to `true`. All values a
9898

9999
## Constructor
100100

101-
- {{jsxref("Global_Objects/Boolean/Boolean", "Boolean()")}}
101+
- {{jsxref("Boolean/Boolean", "Boolean()")}}
102102
- : Creates a new `Boolean` object.
103103

104104
## Instance properties

files/en-us/web/javascript/reference/global_objects/dataview/index.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function getUint64BigInt(dataview, byteOffset, littleEndian) {
6161

6262
## Constructor
6363

64-
- [`DataView()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/DataView)
64+
- {{jsxref("DataView/DataView", "DataView()")}}
6565
- : Creates a new `DataView` object.
6666

6767
## Instance properties
@@ -81,46 +81,46 @@ These properties are defined on `DataView.prototype` and shared by all `DataView
8181

8282
## Instance methods
8383

84-
- {{jsxref("DataView.prototype.getInt8()")}}
85-
- : Gets a signed 8-bit integer (byte) at the specified byte offset from the start of the view.
86-
- {{jsxref("DataView.prototype.getUint8()")}}
87-
- : Gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the view.
84+
- {{jsxref("DataView.prototype.getBigInt64()")}}
85+
- : Gets a signed 64-bit integer (long long) at the specified byte offset from the start of the view.
86+
- {{jsxref("DataView.prototype.getBigUint64()")}}
87+
- : Gets an unsigned 64-bit integer (unsigned long long) at the specified byte offset from the start of the view.
88+
- {{jsxref("DataView.prototype.getFloat32()")}}
89+
- : Gets a signed 32-bit float (float) at the specified byte offset from the start of the view.
90+
- {{jsxref("DataView.prototype.getFloat64()")}}
91+
- : Gets a signed 64-bit float (double) at the specified byte offset from the start of the view.
8892
- {{jsxref("DataView.prototype.getInt16()")}}
8993
- : Gets a signed 16-bit integer (short) at the specified byte offset from the start of the view.
90-
- {{jsxref("DataView.prototype.getUint16()")}}
91-
- : Gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the view.
9294
- {{jsxref("DataView.prototype.getInt32()")}}
9395
- : Gets a signed 32-bit integer (long) at the specified byte offset from the start of the view.
96+
- {{jsxref("DataView.prototype.getInt8()")}}
97+
- : Gets a signed 8-bit integer (byte) at the specified byte offset from the start of the view.
98+
- {{jsxref("DataView.prototype.getUint16()")}}
99+
- : Gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the view.
94100
- {{jsxref("DataView.prototype.getUint32()")}}
95101
- : Gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the view.
96-
- {{jsxref("DataView.prototype.getFloat32()")}}
97-
- : Gets a signed 32-bit float (float) at the specified byte offset from the start of the view.
98-
- {{jsxref("DataView.prototype.getFloat64()")}}
99-
- : Gets a signed 64-bit float (double) at the specified byte offset from the start of the view.
100-
- {{jsxref("DataView.prototype.getBigInt64()")}}
101-
- : Gets a signed 64-bit integer (long long) at the specified byte offset from the start of the view.
102-
- {{jsxref("DataView.prototype.getBigUint64()")}}
103-
- : Gets an unsigned 64-bit integer (unsigned long long) at the specified byte offset from the start of the view.
104-
- {{jsxref("DataView.prototype.setInt8()")}}
105-
- : Stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the view.
106-
- {{jsxref("DataView.prototype.setUint8()")}}
107-
- : Stores an unsigned 8-bit integer (unsigned byte) value at the specified byte offset from the start of the view.
102+
- {{jsxref("DataView.prototype.getUint8()")}}
103+
- : Gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the view.
104+
- {{jsxref("DataView.prototype.setBigInt64()")}}
105+
- : Stores a signed 64-bit integer (long long) value at the specified byte offset from the start of the view.
106+
- {{jsxref("DataView.prototype.setBigUint64()")}}
107+
- : Stores an unsigned 64-bit integer (unsigned long long) value at the specified byte offset from the start of the view.
108+
- {{jsxref("DataView.prototype.setFloat32()")}}
109+
- : Stores a signed 32-bit float (float) value at the specified byte offset from the start of the view.
110+
- {{jsxref("DataView.prototype.setFloat64()")}}
111+
- : Stores a signed 64-bit float (double) value at the specified byte offset from the start of the view.
108112
- {{jsxref("DataView.prototype.setInt16()")}}
109113
- : Stores a signed 16-bit integer (short) value at the specified byte offset from the start of the view.
110-
- {{jsxref("DataView.prototype.setUint16()")}}
111-
- : Stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the view.
112114
- {{jsxref("DataView.prototype.setInt32()")}}
113115
- : Stores a signed 32-bit integer (long) value at the specified byte offset from the start of the view.
116+
- {{jsxref("DataView.prototype.setInt8()")}}
117+
- : Stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the view.
118+
- {{jsxref("DataView.prototype.setUint16()")}}
119+
- : Stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the view.
114120
- {{jsxref("DataView.prototype.setUint32()")}}
115121
- : Stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the view.
116-
- {{jsxref("DataView.prototype.setFloat32()")}}
117-
- : Stores a signed 32-bit float (float) value at the specified byte offset from the start of the view.
118-
- {{jsxref("DataView.prototype.setFloat64()")}}
119-
- : Stores a signed 64-bit float (double) value at the specified byte offset from the start of the view.
120-
- {{jsxref("DataView.prototype.setBigInt64()")}}
121-
- : Stores a signed 64-bit integer (long long) value at the specified byte offset from the start of the view.
122-
- {{jsxref("DataView.prototype.setBigUint64()")}}
123-
- : Stores an unsigned 64-bit integer (unsigned long long) value at the specified byte offset from the start of the view.
122+
- {{jsxref("DataView.prototype.setUint8()")}}
123+
- : Stores an unsigned 8-bit integer (unsigned byte) value at the specified byte offset from the start of the view.
124124

125125
## Examples
126126

files/en-us/web/javascript/reference/global_objects/error/index.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Besides the generic `Error` constructor, there are other core error constructors
3333
- : Creates an instance representing an error that occurs when {{JSxRef("encodeURI", "encodeURI()")}} or {{JSxRef("decodeURI", "decodeURI()")}} are passed invalid parameters.
3434
- {{JSxRef("AggregateError")}}
3535
- : Creates an instance representing several errors wrapped in a single error when multiple errors need to be reported by an operation, for example by {{JSxRef("Promise.any()")}}.
36-
- {{JSxRef("InternalError")}} {{non-standard_inline}}
36+
- {{JSxRef("InternalError")}} {{Non-standard_Inline}}
3737
- : Creates an instance representing an error that occurs when an internal error in the JavaScript engine is thrown. E.g. "too much recursion".
3838

3939
## Constructor
@@ -43,11 +43,11 @@ Besides the generic `Error` constructor, there are other core error constructors
4343

4444
## Static methods
4545

46-
- `Error.captureStackTrace()` {{non-standard_inline}}
46+
- `Error.captureStackTrace()` {{Non-standard_Inline}}
4747
- : A non-standard V8 function that creates the {{JSxRef("Error.prototype.stack", "stack")}} property on an Error instance.
48-
- `Error.stackTraceLimit` {{non-standard_inline}}
48+
- `Error.stackTraceLimit` {{Non-standard_Inline}}
4949
- : A non-standard V8 numerical property that limits how many stack frames to include in an error stacktrace.
50-
- `Error.prepareStackTrace()` {{non-standard_inline}} {{optional_inline}}
50+
- `Error.prepareStackTrace()` {{Non-standard_Inline}} {{Optional_Inline}}
5151
- : A non-standard V8 function that, if provided by usercode, is called by the V8 JavaScript engine for thrown exceptions, allowing the user to provide custom formatting for stacktraces.
5252

5353
## Instance properties
@@ -58,21 +58,21 @@ These properties are defined on `Error.prototype` and shared by all `Error` inst
5858
- : The constructor function that created the instance object. For `Error` instances, the initial value is the {{jsxref("Error/Error", "Error")}} constructor.
5959
- {{jsxref("Error.prototype.name")}}
6060
- : Represents the name for the type of error. For `Error.prototype.name`, the initial value is `"Error"`. Subclasses like {{jsxref("TypeError")}} and {{jsxref("SyntaxError")}} provide their own `name` properties.
61-
- {{jsxref("Error.prototype.stack")}} {{non-standard_inline}}
61+
- {{jsxref("Error.prototype.stack")}} {{Non-standard_Inline}}
6262
- : A non-standard property for a stack trace.
6363

6464
These properties are own properties of each `Error` instance.
6565

66-
- {{jsxref("Error/message", "message")}}
67-
- : Error message. For user-created `Error` objects, this is the string provided as the constructor's first argument.
6866
- {{jsxref("Error/cause", "cause")}}
6967
- : Error cause indicating the reason why the current error is thrown — usually another caught error. For user-created `Error` objects, this is the value provided as the `cause` property of the constructor's second argument.
70-
- {{jsxref("Error/fileName", "fileName")}} {{non-standard_inline}}
68+
- {{jsxref("Error/columnNumber", "columnNumber")}} {{Non-standard_Inline}}
69+
- : A non-standard Mozilla property for the column number in the line that raised this error.
70+
- {{jsxref("Error/fileName", "fileName")}} {{Non-standard_Inline}}
7171
- : A non-standard Mozilla property for the path to the file that raised this error.
72-
- {{jsxref("Error/lineNumber", "lineNumber")}} {{non-standard_inline}}
72+
- {{jsxref("Error/lineNumber", "lineNumber")}} {{Non-standard_Inline}}
7373
- : A non-standard Mozilla property for the line number in the file that raised this error.
74-
- {{jsxref("Error/columnNumber", "columnNumber")}} {{non-standard_inline}}
75-
- : A non-standard Mozilla property for the column number in the line that raised this error.
74+
- {{jsxref("Error/message", "message")}}
75+
- : Error message. For user-created `Error` objects, this is the string provided as the constructor's first argument.
7676

7777
## Instance methods
7878

0 commit comments

Comments
 (0)