- Index
- »
- axon
- »
- func:eachMonth
def
func:eachMonth
eachMonth(dates, fn)
Iterate the months of a span. The dates
argument may be any object converted into a date range by toDateSpan()
. The given function is called with a DateSpan
argument for each interated month.
Examples:
// iterate each month in 2010, and echo data range eachMonth(2010) d => echo(d) // call f once for current method eachMonth(today(), f)