mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Remove constant function from examples (#3086)
This commit is contained in:
committed by
John-David Dalton
parent
64d92ddf32
commit
43a520c971
6
cond.js
6
cond.js
@@ -13,9 +13,9 @@ import arrayMap from './.internal/arrayMap.js'
|
||||
* @example
|
||||
*
|
||||
* const func = cond([
|
||||
* [matches({ 'a': 1 }), constant('matches A')],
|
||||
* [conforms({ 'b': isNumber }), constant('matches B')],
|
||||
* [() => true, constant('no match')]
|
||||
* [matches({ 'a': 1 }), () => 'matches A'],
|
||||
* [conforms({ 'b': isNumber }), () => 'matches B'],
|
||||
* [() => true, () => 'no match']
|
||||
* ])
|
||||
*
|
||||
* func({ 'a': 1, 'b': 2 })
|
||||
|
||||
Reference in New Issue
Block a user