Skip to content

feat(collections/unstable): support Iterable argument in takeLastWhile() #6090

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

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

Liam-Tait
Copy link
Contributor

@Liam-Tait Liam-Tait commented Oct 4, 2024

Create a backwards compatible unstable version of takeLastWhile() that accepts an iterable instead of arrays.

The array version is significantly more performant, so adding a special case for when the iterable is an array.

#5470

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.75%. Comparing base (065296c) to head (9abb15b).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6090      +/-   ##
==========================================
- Coverage   96.75%   96.75%   -0.01%     
==========================================
  Files         509      510       +1     
  Lines       39175    39199      +24     
  Branches     5795     5802       +7     
==========================================
+ Hits        37905    37926      +21     
- Misses       1228     1231       +3     
  Partials       42       42              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Liam-Tait Liam-Tait marked this pull request as ready for review October 4, 2024 10:09
@Liam-Tait Liam-Tait requested a review from kt3k as a code owner October 4, 2024 10:09
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit acee24a into denoland:main Oct 8, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants