Renovate bot | f591dcf | 2023-12-30 14:13:54 +0000 | [diff] [blame] | 1 | define( [ |
2 | "./arr" | ||||
3 | ], function( arr ) { | ||||
4 | |||||
5 | "use strict"; | ||||
6 | |||||
7 | // Support: IE 9 - 11+, Edge 18+, Android Browser 4.0 - 4.3 only, iOS 7 - 11 only, Safari 11 only, | ||||
8 | // Firefox <= 61 only | ||||
9 | // Provide fallback for browsers without Array#flat. | ||||
10 | return arr.flat ? function( array ) { | ||||
11 | return arr.flat.call( array ); | ||||
12 | } : function( array ) { | ||||
13 | return arr.concat.apply( [], array ); | ||||
14 | }; | ||||
15 | |||||
16 | } ); |