mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix iteratee arg count in _.partition docs. [ci skip]
If I am not mistaken, the docs for `partition` are wrong. It is only invoked with an argument, not three. See this fiddle https://jsfiddle.net/y8fcwa6m/
This commit is contained in:
committed by
John-David Dalton
parent
aa311bd792
commit
0c45957096
@@ -2627,7 +2627,7 @@ _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
|
||||
Creates an array of elements split into two groups, the first of which
|
||||
contains elements `predicate` returns truthy for, while the second of which
|
||||
contains elements `predicate` returns falsey for. The predicate is invoked
|
||||
with three arguments: (value, index|key, collection).
|
||||
with one argument: (value).
|
||||
|
||||
#### Arguments
|
||||
1. `collection` *(Array|Object)*: The collection to iterate over.
|
||||
|
||||
Reference in New Issue
Block a user