Jelajahi Sumber

several let's changed to consts

Rawr 5 tahun lalu
induk
melakukan
f73739cc6b
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      src/polyfills.js

+ 3 - 3
src/polyfills.js

@@ -65,15 +65,15 @@ if ( Object.assign === undefined ) {
 
 
 		}
 		}
 
 
-		let output = Object( target );
+		const output = Object( target );
 
 
 		for ( let index = 1; index < arguments.length; index ++ ) {
 		for ( let index = 1; index < arguments.length; index ++ ) {
 
 
-			let source = arguments[ index ];
+			const source = arguments[ index ];
 
 
 			if ( source !== undefined && source !== null ) {
 			if ( source !== undefined && source !== null ) {
 
 
-				for ( let nextKey in source ) {
+				for ( const nextKey in source ) {
 
 
 					if ( Object.prototype.hasOwnProperty.call( source, nextKey ) ) {
 					if ( Object.prototype.hasOwnProperty.call( source, nextKey ) ) {