You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					24 lines
				
				499 B
			
		
		
			
		
	
	
					24 lines
				
				499 B
			| 
								 
											3 years ago
										 
									 | 
							
								"use strict";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Object.defineProperty(exports, "__esModule", {
							 | 
						||
| 
								 | 
							
								  value: true
							 | 
						||
| 
								 | 
							
								});
							 | 
						||
| 
								 | 
							
								exports.default = assign;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								function assign(target, dirtyObject) {
							 | 
						||
| 
								 | 
							
								  if (target == null) {
							 | 
						||
| 
								 | 
							
								    throw new TypeError('assign requires that input parameter not be null or undefined');
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  dirtyObject = dirtyObject || {};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  for (var property in dirtyObject) {
							 | 
						||
| 
								 | 
							
								    if (dirtyObject.hasOwnProperty(property)) {
							 | 
						||
| 
								 | 
							
								      target[property] = dirtyObject[property];
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  return target;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								module.exports = exports.default;
							 |