import startOfMinute from '../startOfMinute/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 isSameMinute ( dirtyDateLeft , dirtyDateRight ) { requiredArgs ( 2 , arguments ) ; const dateLeftStartOfMinute = startOfMinute ( dirtyDateLeft ) ; const dateRightStartOfMinute = startOfMinute ( dirtyDateRight ) ; return dateLeftStartOfMinute . getTime ( ) === dateRightStartOfMinute . getTime ( ) ; }