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.
		
		
		
		
		
			
		
			
				
					13 lines
				
				304 B
			
		
		
			
		
	
	
					13 lines
				
				304 B
			| 
								 
											3 years ago
										 
									 | 
							
								define(['./underscore', './isArray'], function (underscore, isArray) {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  // Normalize a (deep) property `path` to array.
							 | 
						||
| 
								 | 
							
								  // Like `_.iteratee`, this function can be customized.
							 | 
						||
| 
								 | 
							
								  function toPath(path) {
							 | 
						||
| 
								 | 
							
								    return isArray(path) ? path : [path];
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  underscore.toPath = toPath;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  return toPath;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								});
							 |