diff options
Diffstat (limited to 'src/var/flat.js')
-rw-r--r-- | src/var/flat.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/var/flat.js b/src/var/flat.js index 6c7a27169..172420552 100644 --- a/src/var/flat.js +++ b/src/var/flat.js @@ -1,15 +1,9 @@ -define( [ - "./arr" -], function( arr ) { - -"use strict"; +import arr from "./arr.js"; // Support: IE 11+, Edge 18+ // Provide fallback for browsers without Array#flat. -return arr.flat ? function( array ) { +export default arr.flat ? function( array ) { return arr.flat.call( array ); } : function( array ) { return arr.concat.apply( [], array ); }; - -} ); |