Documentation nits. [ci skip]

This commit is contained in:
qsona
2015-03-16 01:44:54 +09:00
committed by jdalton
parent 03478afea4
commit 519eb424e7

View File

@@ -4752,11 +4752,11 @@
* @example
*
* _.flatten([1, [2, 3, [4]]]);
* // => [1, 2, 3, [4]];
* // => [1, 2, 3, [4]]
*
* // using `isDeep`
* _.flatten([1, [2, 3, [4]]], true);
* // => [1, 2, 3, 4];
* // => [1, 2, 3, 4]
*/
function flatten(array, isDeep, guard) {
var length = array ? array.length : 0;
@@ -4777,7 +4777,7 @@
* @example
*
* _.flattenDeep([1, [2, 3, [4]]]);
* // => [1, 2, 3, 4];
* // => [1, 2, 3, 4]
*/
function flattenDeep(array) {
var length = array ? array.length : 0;
@@ -10588,7 +10588,7 @@
* 'length': 24,
* 'separator': /,? +/
* });
* //=> 'hi-diddly-ho there...'
* // => 'hi-diddly-ho there...'
*
* _.trunc('hi-diddly-ho there, neighborino', {
* 'omission': ' [...]'
@@ -11240,11 +11240,11 @@
* _.max(users, function(chr) {
* return chr.age;
* });
* // => { 'user': 'fred', 'age': 40 };
* // => { 'user': 'fred', 'age': 40 }
*
* // using the `_.property` callback shorthand
* _.max(users, 'age');
* // => { 'user': 'fred', 'age': 40 };
* // => { 'user': 'fred', 'age': 40 }
*/
var max = createExtremum(arrayMax);
@@ -11289,11 +11289,11 @@
* _.min(users, function(chr) {
* return chr.age;
* });
* // => { 'user': 'barney', 'age': 36 };
* // => { 'user': 'barney', 'age': 36 }
*
* // using the `_.property` callback shorthand
* _.min(users, 'age');
* // => { 'user': 'barney', 'age': 36 };
* // => { 'user': 'barney', 'age': 36 }
*/
var min = createExtremum(arrayMin, true);