Skip to content

Explain why the _(3).times(...) example in the documentation is correct #819

Closed
@dandv

Description

New users expect the example to follow the syntax, i.e.

_.times(3, function(n){ genie.grantWishNumber(n); });

In fact, someone already posted issue #381 about this. I was also surprised by the syntax, and had to go test.

Would be nice to clearly explain why the example is correct, or just use the expected syntax and explain chaining later.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions