import toDate from '../toDate/index' ; import requiredArgs from '../_lib/requiredArgs/index' ; name category summary description param { Date | Number } date returns { Boolean } throws example export default function isTuesday ( dirtyDate ) { requiredArgs ( 1 , arguments ) ; return toDate ( dirtyDate ) . getDay ( ) === 2 ; }