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

Support for arrow function when refactoring setInterval #44

Closed
Siorki opened this issue Feb 22, 2016 · 2 comments
Closed

Support for arrow function when refactoring setInterval #44

Siorki opened this issue Feb 22, 2016 · 2 comments
Assignees
Milestone

Comments

@Siorki
Copy link
Owner

Siorki commented Feb 22, 2016

ECMAScript 2015 / ES6 introduces arrow functions. They can shorten (as in less bytes, think js1k) the definition of a main loop :
setInterval ( function() { /* contents */ }, 20)
becomes
setInterval ( () => {/* contents */ }, 20)

The option to refactor the call to setInterval() should support that new syntax.

@Siorki
Copy link
Owner Author

Siorki commented Feb 22, 2016

Not an emergency : it is still possible to write code using the old syntax, and the result after using the option will be the same. This is more convenient than required.

@Siorki
Copy link
Owner Author

Siorki commented Oct 24, 2016

Done. See also #56 regarding ES6 support for that module.

@Siorki Siorki closed this as completed Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant