-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
first
util to get the first item from the generator
#4938
Comments
We've got |
But similarly to |
What do you mean? As far as I know |
I checked it and the |
Interesting... I'd love |
Ok. So the PR for the |
As I commented in ckeditor/ckeditor5-utils#130 I find my previous proposal totally wrong now. I take it back :P |
If we want to pop the first value multiple times maybe we should have a better name, like |
|
It's basically
generator.next().value;
, but:seems to be more readlable them:
I know we have
nth
, but it's a common case when you wants to get the first value and we could have a dedicated method for it.The text was updated successfully, but these errors were encountered: