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