mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Update doc examples to ES2015.
This commit is contained in:
6
cond.js
6
cond.js
@@ -13,10 +13,10 @@ import arrayMap from './.internal/arrayMap.js';
|
||||
* @returns {Function} Returns the new composite function.
|
||||
* @example
|
||||
*
|
||||
* var func = cond([
|
||||
* [matches({ 'a': 1 }), constant('matches A')],
|
||||
* const func = cond([
|
||||
* [matches({ 'a': 1 }), constant('matches A')],
|
||||
* [conforms({ 'b': isNumber }), constant('matches B')],
|
||||
* [stubTrue, constant('no match')]
|
||||
* [stubTrue, constant('no match')]
|
||||
* ]);
|
||||
*
|
||||
* func({ 'a': 1, 'b': 2 });
|
||||
|
||||
Reference in New Issue
Block a user