Skip to content

Partial arguments for method() aren't documented #1223

@adamboduch

Description

@adamboduch

Unless I'm missing it, I couldn't find any documentation for method() about partially-applying arguments. It let's you do this, and this is a huge win. At least for me anyway - it's not very often that I map method calls without arguments.

Even a simple example, I think, would suffice for most folks:

_.map('abc', _.method('replace', 'a', 'b')).join('');

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