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: src/lib/es5.d.ts
+1-131
Original file line number
Diff line number
Diff line change
@@ -1246,19 +1246,7 @@ interface ConcatArray<T> {
1246
1246
slice(start?: number,end?: number): T[];
1247
1247
}
1248
1248
1249
-
interfaceArray<T>{
1250
-
/**
1251
-
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
1252
-
*/
1253
-
length: number;
1254
-
/**
1255
-
* Returns a string representation of an array.
1256
-
*/
1257
-
toString(): string;
1258
-
/**
1259
-
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
1260
-
*/
1261
-
toLocaleString(): string;
1249
+
interfaceArray<T>extendsReadonlyArray<T>{
1262
1250
/**
1263
1251
* Removes the last element from an array and returns it.
1264
1252
* If the array is empty, undefined is returned and the array is not modified.
@@ -1269,23 +1257,6 @@ interface Array<T> {
1269
1257
* @param items New elements to add to the array.
1270
1258
*/
1271
1259
push(...items: T[]): number;
1272
-
/**
1273
-
* Combines two or more arrays.
1274
-
* This method returns a new array without modifying any existing arrays.
1275
-
* @param items Additional arrays and/or items to add to the end of the array.
1276
-
*/
1277
-
concat(...items: ConcatArray<T>[]): T[];
1278
-
/**
1279
-
* Combines two or more arrays.
1280
-
* This method returns a new array without modifying any existing arrays.
1281
-
* @param items Additional arrays and/or items to add to the end of the array.
1282
-
*/
1283
-
concat(...items: (T|ConcatArray<T>)[]): T[];
1284
-
/**
1285
-
* Adds all the elements of an array into a string, separated by the specified separator string.
1286
-
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
1287
-
*/
1288
-
join(separator?: string): string;
1289
1260
/**
1290
1261
* Reverses the elements in an array in place.
1291
1262
* This method mutates the array and returns a reference to the same array.
@@ -1296,16 +1267,6 @@ interface Array<T> {
1296
1267
* If the array is empty, undefined is returned and the array is not modified.
1297
1268
*/
1298
1269
shift(): T|undefined;
1299
-
/**
1300
-
* Returns a copy of a section of an array.
1301
-
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
1302
-
* For example, -2 refers to the second to last element of the array.
1303
-
* @param start The beginning index of the specified portion of the array.
1304
-
* If start is undefined, then the slice begins at index 0.
1305
-
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
1306
-
* If end is undefined, then the slice extends to the end of the array.
1307
-
*/
1308
-
slice(start?: number,end?: number): T[];
1309
1270
/**
1310
1271
* Sorts an array in place.
1311
1272
* This method mutates the array and returns a reference to the same array.
@@ -1337,97 +1298,6 @@ interface Array<T> {
1337
1298
* @param items Elements to insert at the start of the array.
1338
1299
*/
1339
1300
unshift(...items: T[]): number;
1340
-
/**
1341
-
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
1342
-
* @param searchElement The value to locate in the array.
1343
-
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
1387
-
* @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.
1388
-
* @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.
1393
-
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1394
-
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
1395
-
*/
1396
-
filter<SextendsT>(predicate: (value: T,index: number,array: T[])=>value is S,thisArg?: any): S[];
1397
-
/**
1398
-
* Returns the elements of an array that meet the condition specified in a callback function.
1399
-
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
1400
-
* @param thisArg An object to which the this keyword can refer in the predicate 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.
1405
-
* @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.
1406
-
* @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.
1412
-
* @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.
1413
-
* @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.
1418
-
* @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.
1419
-
* @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.
1425
-
* @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.
1426
-
* @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