Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Document that over* methods accept matches* shortcuts #4510

Copy link
Copy link
Closed
@arty-name

Description

@arty-name
Issue body actions

I was pleasantly surprised that filter and others can use multiple matchers thanks to over* functions:

_.filter(input, _.overSome([
    _.matches({'a': 1}),
    _.matches({'a': 2}),
]))

Thanks to #2193 this becomes even better:

_.filter(input, _.overSome([
    {'a': 1},
    {'a': 2},
]))

However that last improvement seems to be undocumented. Could you please document this possibility for over* functions? Referring to them in the matches documentation could be the cherry on top.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.