@@ -3,7 +3,7 @@ interface ReadonlyArray<T> {
33 /**
44 * Calls a defined callback function on each element of an array. Then, flattens the result into
55 * a new array.
6- * This is identical to a map followed by a flatten of depth 1.
6+ * This is identical to a map followed by flat with depth 1.
77 *
88 * @param callback A function that accepts up to three arguments. The flatMap method calls the
99 * callback function one time for each element in the array.
@@ -22,7 +22,7 @@ interface ReadonlyArray<T> {
2222 *
2323 * @param depth The maximum recursion depth
2424 */
25- flatten < U > ( this :
25+ flat < U > ( this :
2626 ReadonlyArray < U [ ] [ ] [ ] [ ] > |
2727
2828 ReadonlyArray < ReadonlyArray < U [ ] [ ] [ ] > > |
@@ -51,7 +51,7 @@ interface ReadonlyArray<T> {
5151 *
5252 * @param depth The maximum recursion depth
5353 */
54- flatten < U > ( this :
54+ flat < U > ( this :
5555 ReadonlyArray < U [ ] [ ] [ ] > |
5656
5757 ReadonlyArray < ReadonlyArray < U > [ ] [ ] > |
@@ -71,7 +71,7 @@ interface ReadonlyArray<T> {
7171 *
7272 * @param depth The maximum recursion depth
7373 */
74- flatten < U > ( this :
74+ flat < U > ( this :
7575 ReadonlyArray < U [ ] [ ] > |
7676
7777 ReadonlyArray < ReadonlyArray < U [ ] > > |
@@ -86,7 +86,7 @@ interface ReadonlyArray<T> {
8686 *
8787 * @param depth The maximum recursion depth
8888 */
89- flatten < U > ( this :
89+ flat < U > ( this :
9090 ReadonlyArray < U [ ] > |
9191 ReadonlyArray < ReadonlyArray < U > > ,
9292 depth ?: 1
@@ -98,26 +98,26 @@ interface ReadonlyArray<T> {
9898 *
9999 * @param depth The maximum recursion depth
100100 */
101- flatten < U > ( this :
101+ flat < U > ( this :
102102 ReadonlyArray < U > ,
103103 depth : 0
104104 ) : U [ ] ;
105105
106106 /**
107107 * Returns a new array with all sub-array elements concatenated into it recursively up to the
108- * specified depth. If no depth is provided, flatten method defaults to the depth of 1.
108+ * specified depth. If no depth is provided, flat method defaults to the depth of 1.
109109 *
110110 * @param depth The maximum recursion depth
111111 */
112- flatten < U > ( depth ?: number ) : any [ ] ;
112+ flat < U > ( depth ?: number ) : any [ ] ;
113113 }
114114
115115interface Array < T > {
116116
117117 /**
118118 * Calls a defined callback function on each element of an array. Then, flattens the result into
119119 * a new array.
120- * This is identical to a map followed by a flatten of depth 1.
120+ * This is identical to a map followed by flat with depth 1.
121121 *
122122 * @param callback A function that accepts up to three arguments. The flatMap method calls the
123123 * callback function one time for each element in the array.
@@ -135,69 +135,69 @@ interface Array<T> {
135135 *
136136 * @param depth The maximum recursion depth
137137 */
138- flatten < U > ( this : U [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] , depth : 7 ) : U [ ] ;
138+ flat < U > ( this : U [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] , depth : 7 ) : U [ ] ;
139139
140140 /**
141141 * Returns a new array with all sub-array elements concatenated into it recursively up to the
142142 * specified depth.
143143 *
144144 * @param depth The maximum recursion depth
145145 */
146- flatten < U > ( this : U [ ] [ ] [ ] [ ] [ ] [ ] [ ] , depth : 6 ) : U [ ] ;
146+ flat < U > ( this : U [ ] [ ] [ ] [ ] [ ] [ ] [ ] , depth : 6 ) : U [ ] ;
147147
148148 /**
149149 * Returns a new array with all sub-array elements concatenated into it recursively up to the
150150 * specified depth.
151151 *
152152 * @param depth The maximum recursion depth
153153 */
154- flatten < U > ( this : U [ ] [ ] [ ] [ ] [ ] [ ] , depth : 5 ) : U [ ] ;
154+ flat < U > ( this : U [ ] [ ] [ ] [ ] [ ] [ ] , depth : 5 ) : U [ ] ;
155155
156156 /**
157157 * Returns a new array with all sub-array elements concatenated into it recursively up to the
158158 * specified depth.
159159 *
160160 * @param depth The maximum recursion depth
161161 */
162- flatten < U > ( this : U [ ] [ ] [ ] [ ] [ ] , depth : 4 ) : U [ ] ;
162+ flat < U > ( this : U [ ] [ ] [ ] [ ] [ ] , depth : 4 ) : U [ ] ;
163163
164164 /**
165165 * Returns a new array with all sub-array elements concatenated into it recursively up to the
166166 * specified depth.
167167 *
168168 * @param depth The maximum recursion depth
169169 */
170- flatten < U > ( this : U [ ] [ ] [ ] [ ] , depth : 3 ) : U [ ] ;
170+ flat < U > ( this : U [ ] [ ] [ ] [ ] , depth : 3 ) : U [ ] ;
171171
172172 /**
173173 * Returns a new array with all sub-array elements concatenated into it recursively up to the
174174 * specified depth.
175175 *
176176 * @param depth The maximum recursion depth
177177 */
178- flatten < U > ( this : U [ ] [ ] [ ] , depth : 2 ) : U [ ] ;
178+ flat < U > ( this : U [ ] [ ] [ ] , depth : 2 ) : U [ ] ;
179179
180180 /**
181181 * Returns a new array with all sub-array elements concatenated into it recursively up to the
182182 * specified depth.
183183 *
184184 * @param depth The maximum recursion depth
185185 */
186- flatten < U > ( this : U [ ] [ ] , depth ?: 1 ) : U [ ] ;
186+ flat < U > ( this : U [ ] [ ] , depth ?: 1 ) : U [ ] ;
187187
188188 /**
189189 * Returns a new array with all sub-array elements concatenated into it recursively up to the
190190 * specified depth.
191191 *
192192 * @param depth The maximum recursion depth
193193 */
194- flatten < U > ( this : U [ ] , depth : 0 ) : U [ ] ;
194+ flat < U > ( this : U [ ] , depth : 0 ) : U [ ] ;
195195
196196 /**
197197 * Returns a new array with all sub-array elements concatenated into it recursively up to the
198- * specified depth. If no depth is provided, flatten method defaults to the depth of 1.
198+ * specified depth. If no depth is provided, flat method defaults to the depth of 1.
199199 *
200200 * @param depth The maximum recursion depth
201201 */
202- flatten < U > ( depth ?: number ) : any [ ] ;
202+ flat < U > ( depth ?: number ) : any [ ] ;
203203}
0 commit comments