Minor documentation fixes for stringSize, _.cond, _.intersection, and _.reverse. [ci skip]

This commit is contained in:
Benjamin Tan
2016-01-17 20:36:02 +08:00
committed by John-David Dalton
parent 759a44e2b8
commit cacae31af3

View File

@@ -1168,6 +1168,7 @@
/**
* Gets the number of symbols in `string`.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the string size.
*/
@@ -5858,6 +5859,7 @@
* @param {...Array} [arrays] The arrays to inspect.
* @returns {Array} Returns the new array of shared values.
* @example
*
* _.intersection([2, 1], [4, 2], [1, 2]);
* // => [2]
*/
@@ -6174,6 +6176,7 @@
* **Note:** This method mutates `array` and is based on
* [`Array#reverse`](https://mdn.io/Array/reverse).
*
* @static
* @memberOf _
* @category Array
* @returns {Array} Returns `array`.
@@ -12857,7 +12860,7 @@
* [_.matches({ 'a': 1 }), _.constant('matches A')],
* [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
* [_.constant(true), _.constant('no match')]
* ])
* ]);
*
* func({ 'a': 1, 'b': 2 });
* // => 'matches A'