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