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.
		
		
		
		
		
			
		
			
				
					10 lines
				
				582 B
			
		
		
			
		
	
	
					10 lines
				
				582 B
			| 
								 
											3 years ago
										 
									 | 
							
								import startOfUTCWeek from '../startOfUTCWeek/index.js';
							 | 
						||
| 
								 | 
							
								import requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.
							 | 
						||
| 
								 | 
							
								// See issue: https://github.com/date-fns/date-fns/issues/376
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export default function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {
							 | 
						||
| 
								 | 
							
								  requiredArgs(2, arguments);
							 | 
						||
| 
								 | 
							
								  var dateLeftStartOfWeek = startOfUTCWeek(dirtyDateLeft, options);
							 | 
						||
| 
								 | 
							
								  var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options);
							 | 
						||
| 
								 | 
							
								  return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();
							 | 
						||
| 
								 | 
							
								}
							 |