ye-ars
List a range of years from the current year or selected year.
Install
npm install --save ye-ars
Usage
const years = const options = count: 3 const result = // -> [2018, 2019, 2020]
API
years(options: Object) -> Array
options
(Object)initialYear
(Number) initial year to start countingcount
(Number) number of years to list
License
MIT © Guillermo Lopez