This repository was archived by the owner on Apr 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-47
lines changed Expand file tree Collapse file tree 2 files changed +0
-47
lines changed Original file line number Diff line number Diff line change @@ -9,28 +9,6 @@ function loadPolyfills() {
99 return vals ;
1010 } ;
1111 }
12- if ( typeof Object . assign !== 'function' ) {
13- ( function ( ) {
14- Object . assign = function ( target ) {
15- 'use strict' ;
16- if ( target === undefined || target === null ) {
17- throw new TypeError ( 'Cannot convert undefined or null to object' ) ;
18- }
19- var output = Object ( target ) ;
20- for ( var index = 1 ; index < arguments . length ; index ++ ) {
21- var source = arguments [ index ] ;
22- if ( source !== undefined && source !== null ) {
23- for ( var nextKey in source ) {
24- if ( source . hasOwnProperty ( nextKey ) ) {
25- output [ nextKey ] = source [ nextKey ] ;
26- }
27- }
28- }
29- }
30- return output ;
31- } ;
32- } ) ( ) ;
33- }
3412}
3513Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
3614exports . default = loadPolyfills ;
Original file line number Diff line number Diff line change @@ -11,29 +11,4 @@ export default function loadPolyfills(): void {
1111 } ;
1212 }
1313
14- // Object.assign (ES7)
15- if ( typeof Object . assign !== 'function' ) {
16- ( function ( ) {
17- Object . assign = function ( target ) {
18- 'use strict' ;
19- if ( target === undefined || target === null ) {
20- throw new TypeError ( 'Cannot convert undefined or null to object' ) ;
21- }
22-
23- var output = Object ( target ) ;
24- for ( var index = 1 ; index < arguments . length ; index ++ ) {
25- var source = arguments [ index ] ;
26- if ( source !== undefined && source !== null ) {
27- for ( var nextKey in source ) {
28- if ( source . hasOwnProperty ( nextKey ) ) {
29- output [ nextKey ] = source [ nextKey ] ;
30- }
31- }
32- }
33- }
34- return output ;
35- } ;
36- } ) ( ) ;
37- }
38-
3914} ;
You can’t perform that action at this time.
0 commit comments