mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Remove references to _.
This commit is contained in:
9
cond.js
9
cond.js
@@ -11,17 +11,16 @@ const FUNC_ERROR_TEXT = 'Expected a function';
|
||||
* function.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Util
|
||||
* @param {Array} pairs The predicate-function pairs.
|
||||
* @returns {Function} Returns the new composite function.
|
||||
* @example
|
||||
*
|
||||
* var func = _.cond([
|
||||
* [_.matches({ 'a': 1 }), _.constant('matches A')],
|
||||
* [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
|
||||
* [_.stubTrue, _.constant('no match')]
|
||||
* var func = cond([
|
||||
* [matches({ 'a': 1 }), constant('matches A')],
|
||||
* [conforms({ 'b': isNumber }), constant('matches B')],
|
||||
* [stubTrue, constant('no match')]
|
||||
* ]);
|
||||
*
|
||||
* func({ 'a': 1, 'b': 2 });
|
||||
|
||||
Reference in New Issue
Block a user