-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add helper functions on %RangeIteratorPrototype% #12
Comments
Does that also means introducing new |
yes, I think it will be useful but I'm not quite clear about what will the API looks like |
Some possible instance and static methods:
|
Maybe not making a Range object, but add useful methods on There're complains that said By adding methods on the |
For the convenience of future polyfill, IMO it should also expose 3 getters (or non-writable values) |
Yes, we're going to have helper methods. I'm closing this issue. If anyone wants to suggest any helpers, please open a new issue. That will make the discussion easier to track. |
Return a Range object with a @@iterator or extends %RangeIteratorPrototype% so we can add some helper functions on the range object like range.includes()
Possible methods on the Range object
includes(x)
@@iterator
@@slice
(Slice Extensibility proposal-slice-notation#19 )toLocaleString(...)
(Add helper functions on %RangeIteratorPrototype% #12 (comment))readonly start
readonly end
readonly step
(For polyfill authors, Add helper functions on %RangeIteratorPrototype% #12 (comment) )The text was updated successfully, but these errors were encountered: