mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 20:37:48 +00:00
Simplify _.conforms doc example. [ci skip]
This commit is contained in:
@@ -14671,7 +14671,7 @@
|
|||||||
* { 'user': 'fred', 'age': 40 }
|
* { 'user': 'fred', 'age': 40 }
|
||||||
* ];
|
* ];
|
||||||
*
|
*
|
||||||
* _.filter(users, _.conforms({ 'age': _.partial(_.gt, _, 38) }));
|
* _.filter(users, _.conforms({ 'age': function(n) { return n > 38; } }));
|
||||||
* // => [{ 'user': 'fred', 'age': 40 }]
|
* // => [{ 'user': 'fred', 'age': 40 }]
|
||||||
*/
|
*/
|
||||||
function conforms(source) {
|
function conforms(source) {
|
||||||
|
|||||||
Reference in New Issue
Block a user