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

fix(dropWhile): dropWhile returns the whole array when every element does not match the predicate #49

Merged
merged 3 commits into from
Jun 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: adds testcase for dropRightWhile
  • Loading branch information
changwoolab committed Jun 14, 2024
commit ebfb739958c6b1a519b1dcc4310994c0cec33eec
2 changes: 2 additions & 0 deletions src/array/dropRightWhile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ describe('dropRightWhile', () => {
enabled: true,
},
]);

expect(dropRightWhile([1, 2, 3], x => x < 4)).toEqual([]);
});
});