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

Filter Collection by Values 🔍 #112

Merged
merged 8 commits into from
Jan 6, 2022
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
extended function description
Markus committed Jan 5, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
addaleax Anna Henningsen
commit dda53a92c39a996dd6ab47563e72714ca65a022e
4 changes: 4 additions & 0 deletions src/filter-collection-by-values/index.js
Original file line number Diff line number Diff line change
@@ -10,6 +10,10 @@ import { forEach, find } from 'lodash';
* Iterates over elements of `values` and returns the matching entry
* from ´collection´, if there is a match.
*
* Notice that this function preserves the order of `values` in the result set
* and is thus most useful if a collection must be filtered in an order that is
* specified by another collection.
*
* @function
* @since 1.2.0
* @param {Array} values The values to search for.