import eachWeekendOfInterval from '../eachWeekendOfInterval/index' ; import endOfYear from '../endOfYear/index' ; import startOfYear from '../startOfYear/index' ; import requiredArgs from '../_lib/requiredArgs/index' ; name category summary description param { Date | Number } date returns { Date [ ] } throws throws example export default function eachWeekendOfYear ( dirtyDate ) { requiredArgs ( 1 , arguments ) ; const startDate = startOfYear ( dirtyDate ) ; const endDate = endOfYear ( dirtyDate ) ; return eachWeekendOfInterval ( { start : startDate , end : endDate } ) ; }