We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
slice
Returns an Iterable/AsyncIterable of the given elements from startIndex(inclusive) to endIndex(exclusive).
Iterable/AsyncIterable
startIndex
endIndex
const iter1 = slice(0, 2, [1,2,3,4,5]); // [1, 2] iter1.next(); // {value:1, done:false} iter1.next(); // {value:2, done:false} iter1.next(); // {value:undefined, done:true} const iter2 = slice(0, 2, 'abcde'); // [1, 2] iter2.next(); // {value:'a', done:false} iter2.next(); // {value:'b', done:false} iter2.next(); // {value:undefined, done:true}
The text was updated successfully, but these errors were encountered:
ppeeou
Successfully merging a pull request may close this issue.
Suggestion
⭐ Suggestion
Returns an
Iterable/AsyncIterable
of the given elements fromstartIndex
(inclusive) toendIndex
(exclusive).💻 Use Cases
The text was updated successfully, but these errors were encountered: