Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iterate with for...of #82

Open
chrischjh opened this issue Nov 29, 2016 · 3 comments · May be fixed by #203
Open

iterate with for...of #82

chrischjh opened this issue Nov 29, 2016 · 3 comments · May be fixed by #203

Comments

@chrischjh
Copy link

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())
}
@harrisiirak harrisiirak added this to the 3.0 milestone Dec 7, 2016
@harrisiirak
Copy link
Owner

@chrischjh well yes. I'm planning to rewrite it in ES6 in the near future.

@yanickrochon
Copy link

I'd be willing to help with that (see #112)

@andytson
Copy link
Contributor

#203 is a PR that implements this

@harrisiirak harrisiirak removed this from the 3.0 milestone Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants