mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Documentation nits. [ci skip]
This commit is contained in:
@@ -4752,11 +4752,11 @@
|
|||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.flatten([1, [2, 3, [4]]]);
|
* _.flatten([1, [2, 3, [4]]]);
|
||||||
* // => [1, 2, 3, [4]];
|
* // => [1, 2, 3, [4]]
|
||||||
*
|
*
|
||||||
* // using `isDeep`
|
* // using `isDeep`
|
||||||
* _.flatten([1, [2, 3, [4]]], true);
|
* _.flatten([1, [2, 3, [4]]], true);
|
||||||
* // => [1, 2, 3, 4];
|
* // => [1, 2, 3, 4]
|
||||||
*/
|
*/
|
||||||
function flatten(array, isDeep, guard) {
|
function flatten(array, isDeep, guard) {
|
||||||
var length = array ? array.length : 0;
|
var length = array ? array.length : 0;
|
||||||
@@ -4777,7 +4777,7 @@
|
|||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.flattenDeep([1, [2, 3, [4]]]);
|
* _.flattenDeep([1, [2, 3, [4]]]);
|
||||||
* // => [1, 2, 3, 4];
|
* // => [1, 2, 3, 4]
|
||||||
*/
|
*/
|
||||||
function flattenDeep(array) {
|
function flattenDeep(array) {
|
||||||
var length = array ? array.length : 0;
|
var length = array ? array.length : 0;
|
||||||
@@ -10588,7 +10588,7 @@
|
|||||||
* 'length': 24,
|
* 'length': 24,
|
||||||
* 'separator': /,? +/
|
* 'separator': /,? +/
|
||||||
* });
|
* });
|
||||||
* //=> 'hi-diddly-ho there...'
|
* // => 'hi-diddly-ho there...'
|
||||||
*
|
*
|
||||||
* _.trunc('hi-diddly-ho there, neighborino', {
|
* _.trunc('hi-diddly-ho there, neighborino', {
|
||||||
* 'omission': ' [...]'
|
* 'omission': ' [...]'
|
||||||
@@ -11240,11 +11240,11 @@
|
|||||||
* _.max(users, function(chr) {
|
* _.max(users, function(chr) {
|
||||||
* return chr.age;
|
* return chr.age;
|
||||||
* });
|
* });
|
||||||
* // => { 'user': 'fred', 'age': 40 };
|
* // => { 'user': 'fred', 'age': 40 }
|
||||||
*
|
*
|
||||||
* // using the `_.property` callback shorthand
|
* // using the `_.property` callback shorthand
|
||||||
* _.max(users, 'age');
|
* _.max(users, 'age');
|
||||||
* // => { 'user': 'fred', 'age': 40 };
|
* // => { 'user': 'fred', 'age': 40 }
|
||||||
*/
|
*/
|
||||||
var max = createExtremum(arrayMax);
|
var max = createExtremum(arrayMax);
|
||||||
|
|
||||||
@@ -11289,11 +11289,11 @@
|
|||||||
* _.min(users, function(chr) {
|
* _.min(users, function(chr) {
|
||||||
* return chr.age;
|
* return chr.age;
|
||||||
* });
|
* });
|
||||||
* // => { 'user': 'barney', 'age': 36 };
|
* // => { 'user': 'barney', 'age': 36 }
|
||||||
*
|
*
|
||||||
* // using the `_.property` callback shorthand
|
* // using the `_.property` callback shorthand
|
||||||
* _.min(users, 'age');
|
* _.min(users, 'age');
|
||||||
* // => { 'user': 'barney', 'age': 36 };
|
* // => { 'user': 'barney', 'age': 36 }
|
||||||
*/
|
*/
|
||||||
var min = createExtremum(arrayMin, true);
|
var min = createExtremum(arrayMin, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user