import startOfISOWeekYear from '../startOfISOWeekYear/index' ; import requiredArgs from '../_lib/requiredArgs/index' ; name category summary description param { Date | Number } dateLeft param { Date | Number } dateRight returns { Boolean } throws example export default function isSameISOWeekYear ( dirtyDateLeft , dirtyDateRight ) { requiredArgs ( 2 , arguments ) ; const dateLeftStartOfYear = startOfISOWeekYear ( dirtyDateLeft ) ; const dateRightStartOfYear = startOfISOWeekYear ( dirtyDateRight ) ; return dateLeftStartOfYear . getTime ( ) === dateRightStartOfYear . getTime ( ) ; }