Skip to content

Commit c6a0739

Browse files
me4502RyanCavanaugh
authored andcommitted
fix(docs): Fixed the docs for Array#slice not spec (microsoft#31182)
ifying that the 'end' parameter is exclusive.
1 parent f304b81 commit c6a0739

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib/es5.d.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ interface ReadonlyArray<T> {
10941094
/**
10951095
* Returns a section of an array.
10961096
* @param start The beginning of the specified portion of the array.
1097-
* @param end The end of the specified portion of the array.
1097+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
10981098
*/
10991099
slice(start?: number, end?: number): T[];
11001100
/**
@@ -1230,7 +1230,7 @@ interface Array<T> {
12301230
/**
12311231
* Returns a section of an array.
12321232
* @param start The beginning of the specified portion of the array.
1233-
* @param end The end of the specified portion of the array.
1233+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
12341234
*/
12351235
slice(start?: number, end?: number): T[];
12361236
/**
@@ -1860,7 +1860,7 @@ interface Int8Array {
18601860
/**
18611861
* Returns a section of an array.
18621862
* @param start The beginning of the specified portion of the array.
1863-
* @param end The end of the specified portion of the array.
1863+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
18641864
*/
18651865
slice(start?: number, end?: number): Int8Array;
18661866

@@ -2135,7 +2135,7 @@ interface Uint8Array {
21352135
/**
21362136
* Returns a section of an array.
21372137
* @param start The beginning of the specified portion of the array.
2138-
* @param end The end of the specified portion of the array.
2138+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
21392139
*/
21402140
slice(start?: number, end?: number): Uint8Array;
21412141

@@ -2410,7 +2410,7 @@ interface Uint8ClampedArray {
24102410
/**
24112411
* Returns a section of an array.
24122412
* @param start The beginning of the specified portion of the array.
2413-
* @param end The end of the specified portion of the array.
2413+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
24142414
*/
24152415
slice(start?: number, end?: number): Uint8ClampedArray;
24162416

@@ -2683,7 +2683,7 @@ interface Int16Array {
26832683
/**
26842684
* Returns a section of an array.
26852685
* @param start The beginning of the specified portion of the array.
2686-
* @param end The end of the specified portion of the array.
2686+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
26872687
*/
26882688
slice(start?: number, end?: number): Int16Array;
26892689

@@ -2959,7 +2959,7 @@ interface Uint16Array {
29592959
/**
29602960
* Returns a section of an array.
29612961
* @param start The beginning of the specified portion of the array.
2962-
* @param end The end of the specified portion of the array.
2962+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
29632963
*/
29642964
slice(start?: number, end?: number): Uint16Array;
29652965

@@ -3234,7 +3234,7 @@ interface Int32Array {
32343234
/**
32353235
* Returns a section of an array.
32363236
* @param start The beginning of the specified portion of the array.
3237-
* @param end The end of the specified portion of the array.
3237+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
32383238
*/
32393239
slice(start?: number, end?: number): Int32Array;
32403240

@@ -3508,7 +3508,7 @@ interface Uint32Array {
35083508
/**
35093509
* Returns a section of an array.
35103510
* @param start The beginning of the specified portion of the array.
3511-
* @param end The end of the specified portion of the array.
3511+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
35123512
*/
35133513
slice(start?: number, end?: number): Uint32Array;
35143514

@@ -3783,7 +3783,7 @@ interface Float32Array {
37833783
/**
37843784
* Returns a section of an array.
37853785
* @param start The beginning of the specified portion of the array.
3786-
* @param end The end of the specified portion of the array.
3786+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
37873787
*/
37883788
slice(start?: number, end?: number): Float32Array;
37893789

@@ -4059,7 +4059,7 @@ interface Float64Array {
40594059
/**
40604060
* Returns a section of an array.
40614061
* @param start The beginning of the specified portion of the array.
4062-
* @param end The end of the specified portion of the array.
4062+
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
40634063
*/
40644064
slice(start?: number, end?: number): Float64Array;
40654065

0 commit comments

Comments
 (0)