import startOfSecond from '../startOfSecond/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 isSameSecond ( dirtyDateLeft , dirtyDateRight ) { requiredArgs ( 2 , arguments ) ; const dateLeftStartOfSecond = startOfSecond ( dirtyDateLeft ) ; const dateRightStartOfSecond = startOfSecond ( dirtyDateRight ) ; return dateLeftStartOfSecond . getTime ( ) === dateRightStartOfSecond . getTime ( ) ; }