mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 20:37:48 +00:00
Remove stubTrue from cond example (#3085)
This commit is contained in:
committed by
John-David Dalton
parent
dad1fccdb4
commit
64d92ddf32
2
cond.js
2
cond.js
@@ -15,7 +15,7 @@ import arrayMap from './.internal/arrayMap.js'
|
|||||||
* const func = cond([
|
* const func = cond([
|
||||||
* [matches({ 'a': 1 }), constant('matches A')],
|
* [matches({ 'a': 1 }), constant('matches A')],
|
||||||
* [conforms({ 'b': isNumber }), constant('matches B')],
|
* [conforms({ 'b': isNumber }), constant('matches B')],
|
||||||
* [stubTrue, constant('no match')]
|
* [() => true, constant('no match')]
|
||||||
* ])
|
* ])
|
||||||
*
|
*
|
||||||
* func({ 'a': 1, 'b': 2 })
|
* func({ 'a': 1, 'b': 2 })
|
||||||
|
|||||||
Reference in New Issue
Block a user