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() {
9
9
return vals ;
10
10
} ;
11
11
}
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
- }
34
12
}
35
13
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
36
14
exports . default = loadPolyfills ;
Original file line number Diff line number Diff line change @@ -11,29 +11,4 @@ export default function loadPolyfills(): void {
11
11
} ;
12
12
}
13
13
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
-
39
14
} ;
You can’t perform that action at this time.
0 commit comments