You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/lib.es5.d.ts
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1139,12 +1139,12 @@ interface Array<T> {
1139
1139
* Combines two or more arrays.
1140
1140
* @param items Additional items to add to the end of array1.
1141
1141
*/
1142
-
concat(...items: T[][]): T[];
1142
+
concat(...items: T[][]): this;
1143
1143
/**
1144
1144
* Combines two or more arrays.
1145
1145
* @param items Additional items to add to the end of array1.
1146
1146
*/
1147
-
concat(...items: (T|T[])[]): T[];
1147
+
concat(...items: (T|T[])[]): this;
1148
1148
/**
1149
1149
* Adds all the elements of an array separated by the specified separator string.
1150
1150
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
@@ -1153,7 +1153,7 @@ interface Array<T> {
1153
1153
/**
1154
1154
* Reverses the elements in an Array.
1155
1155
*/
1156
-
reverse(): T[];
1156
+
reverse(): this;
1157
1157
/**
1158
1158
* Removes the first element from an array and returns it.
1159
1159
*/
@@ -1163,7 +1163,7 @@ interface Array<T> {
1163
1163
* @param start The beginning of the specified portion of the array.
1164
1164
* @param end The end of the specified portion of the array.
1165
1165
*/
1166
-
slice(start?: number,end?: number): T[];
1166
+
slice(start?: number,end?: number): this;
1167
1167
/**
1168
1168
* Sorts an array.
1169
1169
* @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
@@ -1173,14 +1173,14 @@ interface Array<T> {
1173
1173
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1174
1174
* @param start The zero-based location in the array from which to start removing elements.
1175
1175
*/
1176
-
splice(start: number): T[];
1176
+
splice(start: number): this;
1177
1177
/**
1178
1178
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1179
1179
* @param start The zero-based location in the array from which to start removing elements.
1180
1180
* @param deleteCount The number of elements to remove.
1181
1181
* @param items Elements to insert into the array in place of the deleted elements.
* @param items Elements to insert at the start of the Array.
@@ -1203,55 +1203,55 @@ interface Array<T> {
1203
1203
* @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
1204
1204
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
* Determines whether the specified callback function returns true for any element of an array.
1209
1209
* @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
1210
1210
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
1221
1221
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
1222
1222
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
* Returns the elements of an array that meet the condition specified in a callback function.
1227
1227
* @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
1228
1228
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1233
1233
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1234
1234
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1239
1239
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
1240
1240
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1245
1245
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1246
1246
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
1251
1251
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
1252
1252
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
0 commit comments