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.
		
		
		
		
		
			
		
			
				
					
					
						
							23 lines
						
					
					
						
							873 B
						
					
					
				
			
		
		
	
	
							23 lines
						
					
					
						
							873 B
						
					
					
				| "use strict";
 | |
| 
 | |
| Object.defineProperty(exports, "__esModule", {
 | |
|   value: true
 | |
| });
 | |
| exports.default = isSameUTCWeek;
 | |
| 
 | |
| var _index = _interopRequireDefault(require("../startOfUTCWeek/index.js"));
 | |
| 
 | |
| var _index2 = _interopRequireDefault(require("../requiredArgs/index.js"));
 | |
| 
 | |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 | |
| 
 | |
| // 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
 | |
| function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {
 | |
|   (0, _index2.default)(2, arguments);
 | |
|   var dateLeftStartOfWeek = (0, _index.default)(dirtyDateLeft, options);
 | |
|   var dateRightStartOfWeek = (0, _index.default)(dirtyDateRight, options);
 | |
|   return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();
 | |
| }
 | |
| 
 | |
| module.exports = exports.default; |