cron-parser
cron-parser copied to clipboard
iterate with for...of
It seems you didn't implement Symbol.iterator thus can't iterate via for...of
:
const interval = CronExpression.parse('0 * * * *', options)
for (let i of interval) {
console.log(i.value.toString())
}
@chrischjh well yes. I'm planning to rewrite it in ES6 in the near future.
I'd be willing to help with that (see #112)
#203 is a PR that implements this