ye-ars
v1.0.1
Published
list a range of years from the current year or selected year
Readme
ye-ars
List a range of years from the current year or selected year.
Install
npm install --save ye-arsUsage
const years = require('ye-ars')
const options = {
count: 3
}
const result = years(options) // -> [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
