import startOfQuarter from '../startOfQuarter/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 isSameQuarter ( dirtyDateLeft , dirtyDateRight ) { requiredArgs ( 2 , arguments ) ; const dateLeftStartOfQuarter = startOfQuarter ( dirtyDateLeft ) ; const dateRightStartOfQuarter = startOfQuarter ( dirtyDateRight ) ; return dateLeftStartOfQuarter . getTime ( ) === dateRightStartOfQuarter . getTime ( ) ; }