diff options
Diffstat (limited to 'node_modules/jquery/src/var/flat.js')
| -rw-r--r-- | node_modules/jquery/src/var/flat.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/jquery/src/var/flat.js b/node_modules/jquery/src/var/flat.js new file mode 100644 index 0000000..86f91a6 --- /dev/null +++ b/node_modules/jquery/src/var/flat.js @@ -0,0 +1,16 @@ +define( [ + "./arr" +], function( arr ) { + +"use strict"; + +// Support: IE 9 - 11+, Edge 18+, Android Browser 4.0 - 4.3 only, iOS 7 - 11 only, Safari 11 only, +// Firefox <= 61 only +// Provide fallback for browsers without Array#flat. +return arr.flat ? function( array ) { + return arr.flat.call( array ); +} : function( array ) { + return arr.concat.apply( [], array ); +}; + +} ); |
