Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Document that over* methods accept matches* shortcuts #4510

@arty-name

Description

@arty-name

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