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

Add split function #26

Closed
ppeeou opened this issue Nov 29, 2021 · 0 comments · Fixed by #27
Closed

Add split function #26

ppeeou opened this issue Nov 29, 2021 · 0 comments · Fixed by #27
Labels
enhancement New feature or request

Comments

@ppeeou
Copy link
Member

ppeeou commented Nov 29, 2021

Suggestion

⭐ Suggestion

Splits string by separator. (not support unicode)

💻 Use Cases

const iter = split(',', '1,2,3,4,5,6');
iter.next(); // 1
iter.next(); // 2
iter.next(); // 3
iter.next(); // 4
iter.next(); // 5
iter.next(); // 6
iter.next(); // undefined
This was referenced Nov 29, 2021
@ppeeou ppeeou added enhancement New feature or request v0.3 labels Nov 30, 2021
@ppeeou ppeeou closed this as completed in #27 Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant