Remove constant function from examples (#3086)

This commit is contained in:
Roman Gusev
2017-03-30 22:42:45 +06:00
committed by John-David Dalton
parent 64d92ddf32
commit 43a520c971
7 changed files with 14 additions and 14 deletions

View File

@@ -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 })