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