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
* @param items Additional items to add to the end of array1.
1009
+
*/
1010
+
concat(...items: T[]): T[];
1011
+
/**
1012
+
* Adds all the elements of an array separated by the specified separator string.
1013
+
* @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.
1014
+
*/
1015
+
join(separator?: string): string;
1016
+
/**
1017
+
* Returns a section of an array.
1018
+
* @param start The beginning of the specified portion of the array.
1019
+
* @param end The end of the specified portion of the array.
1020
+
*/
1021
+
slice(start?: number,end?: number): T[];
1022
+
/**
1023
+
* Returns the index of the first occurrence of a value in an array.
1024
+
* @param searchElement The value to locate in the array.
1025
+
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
* Determines whether all the members of an array satisfy the specified test.
1037
+
* @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.
1038
+
* @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.
1043
+
* @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.
1044
+
* @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.
1055
+
* @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.
1056
+
* @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.
1061
+
* @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.
1062
+
* @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.
1067
+
* @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.
1068
+
* @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.
1073
+
* @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.
1074
+
* @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.
1079
+
* @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.
1080
+
* @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.
1085
+
* @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.
1086
+
* @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.
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
@@ -1036,82 +1138,70 @@ interface Array<T> {
1036
1138
* @param end The end of the specified portion of the array.
1037
1139
*/
1038
1140
slice(start?: number,end?: number): T[];
1039
-
1040
1141
/**
1041
1142
* Sorts an array.
1042
1143
* @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.
1043
1144
*/
1044
1145
sort(compareFn?: (a: T,b: T)=>number): T[];
1045
-
1046
1146
/**
1047
1147
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1048
1148
* @param start The zero-based location in the array from which to start removing elements.
1049
1149
*/
1050
1150
splice(start: number): T[];
1051
-
1052
1151
/**
1053
1152
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1054
1153
* @param start The zero-based location in the array from which to start removing elements.
1055
1154
* @param deleteCount The number of elements to remove.
1056
1155
* @param items Elements to insert into the array in place of the deleted elements.
* Determines whether all the members of an array satisfy the specified test.
1082
1177
* @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.
1083
1178
* @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.
1089
1183
* @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.
1090
1184
* @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.
1103
1195
* @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.
1104
1196
* @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.
1110
1201
* @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.
1111
1202
* @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.
1117
1207
* @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.
@@ -1124,7 +1214,6 @@ interface Array<T> {
1124
1214
* @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.
1130
1219
* @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.
0 commit comments