add hw2
This commit is contained in:
		
							
								
								
									
										22
									
								
								node_modules/lodash-es/_baseSetToString.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								node_modules/lodash-es/_baseSetToString.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| import constant from './constant.js'; | ||||
| import defineProperty from './_defineProperty.js'; | ||||
| import identity from './identity.js'; | ||||
|  | ||||
| /** | ||||
|  * The base implementation of `setToString` without support for hot loop shorting. | ||||
|  * | ||||
|  * @private | ||||
|  * @param {Function} func The function to modify. | ||||
|  * @param {Function} string The `toString` result. | ||||
|  * @returns {Function} Returns `func`. | ||||
|  */ | ||||
| var baseSetToString = !defineProperty ? identity : function(func, string) { | ||||
|   return defineProperty(func, 'toString', { | ||||
|     'configurable': true, | ||||
|     'enumerable': false, | ||||
|     'value': constant(string), | ||||
|     'writable': true | ||||
|   }); | ||||
| }; | ||||
|  | ||||
| export default baseSetToString; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik