range
Generates a month sequence between two endpoints.
API Reference
Signature
Parameters
Returns
Returns an array of immutable MonthInstance values.
Throws
- Throws when
stepis0. - Throws when
stepmoves away fromend.
Agent Contract
Agent Notes
- Use
.map(String)or.map((month) => month.toString())when string output is needed. - Be careful with large ranges because this method allocates the full array.