Skip to content

Commit a4b1410

Browse files
Fix Array.at documentation: change 'code unit' to 'item' (#64536)
Co-authored-by: iamawanishmaurya <iamawanishmaurya@users.noreply.github.com>
1 parent 2f9fd09 commit a4b1410

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎tsc/internal/bundled/libs/lib.es2022.array.d.ts‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,103 +17,103 @@ and limitations under the License.
1717
interface Array<T> {
1818
/**
1919
* Returns the item located at the specified index.
20-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
20+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
2121
*/
2222
at(index: number): T | undefined;
2323
}
2424

2525
interface ReadonlyArray<T> {
2626
/**
2727
* Returns the item located at the specified index.
28-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
28+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
2929
*/
3030
at(index: number): T | undefined;
3131
}
3232

3333
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
3434
/**
3535
* Returns the item located at the specified index.
36-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
36+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
3737
*/
3838
at(index: number): number | undefined;
3939
}
4040

4141
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
4242
/**
4343
* Returns the item located at the specified index.
44-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
44+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
4545
*/
4646
at(index: number): number | undefined;
4747
}
4848

4949
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
5050
/**
5151
* Returns the item located at the specified index.
52-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
52+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
5353
*/
5454
at(index: number): number | undefined;
5555
}
5656

5757
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
5858
/**
5959
* Returns the item located at the specified index.
60-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
60+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
6161
*/
6262
at(index: number): number | undefined;
6363
}
6464

6565
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
6666
/**
6767
* Returns the item located at the specified index.
68-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
68+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
6969
*/
7070
at(index: number): number | undefined;
7171
}
7272

7373
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
7474
/**
7575
* Returns the item located at the specified index.
76-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
76+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
7777
*/
7878
at(index: number): number | undefined;
7979
}
8080

8181
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
8282
/**
8383
* Returns the item located at the specified index.
84-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
84+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
8585
*/
8686
at(index: number): number | undefined;
8787
}
8888

8989
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
9090
/**
9191
* Returns the item located at the specified index.
92-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
92+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
9393
*/
9494
at(index: number): number | undefined;
9595
}
9696

9797
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
9898
/**
9999
* Returns the item located at the specified index.
100-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
100+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
101101
*/
102102
at(index: number): number | undefined;
103103
}
104104

105105
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
106106
/**
107107
* Returns the item located at the specified index.
108-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
108+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
109109
*/
110110
at(index: number): bigint | undefined;
111111
}
112112

113113
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
114114
/**
115115
* Returns the item located at the specified index.
116-
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
116+
* @param index The zero-based index of the desired item. A negative index will count back from the last item.
117117
*/
118118
at(index: number): bigint | undefined;
119119
}

0 commit comments

Comments
 (0)