import toDate from '../toDate/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 isEqual ( dirtyLeftDate , dirtyRightDate ) { requiredArgs ( 2 , arguments ) ; const dateLeft = toDate ( dirtyLeftDate ) ; const dateRight = toDate ( dirtyRightDate ) ; return dateLeft . getTime ( ) === dateRight . getTime ( ) ; }