Browse Source

replaced var with let

Rawr 5 years ago
parent
commit
83dd5f89d5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/polyfills.js

+ 4 - 4
src/polyfills.js

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