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(begin[, end]) => Wrapper
Returns a new wrapper with a subset of the nodes of the original wrapper, according to the rules of Array.prototype.slice.
Array.prototype.slice
Currently:
wrapper.find(Component).forEach((item, index) => { if (index < 2) return; // Assertions });
This would be a nice addition:
wrapper.find(Component).slice(2).forEach((item, index) => { // Assertions });
The text was updated successfully, but these errors were encountered:
I like it. This seems straightforward, as long as it conforms to Array#slice.
Array#slice
Sorry, something went wrong.
I'd be happy to submit a PR for this when I get some time this weekend.
No branches or pull requests
.slice(begin[, end]) => Wrapper
Returns a new wrapper with a subset of the nodes of the original wrapper, according to the rules of
Array.prototype.slice
.Use Case
Currently:
This would be a nice addition:
The text was updated successfully, but these errors were encountered: