mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Tweak _.drop, _.dropRight, _.take, & _.takeRight doc examples. [ci skip]
This commit is contained in:
@@ -4142,7 +4142,7 @@
|
|||||||
* @returns {Array} Returns the slice of `array`.
|
* @returns {Array} Returns the slice of `array`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.drop([1, 2, 3], 1);
|
* _.drop([1, 2, 3]);
|
||||||
* // => [2, 3]
|
* // => [2, 3]
|
||||||
*
|
*
|
||||||
* _.drop([1, 2, 3], 2);
|
* _.drop([1, 2, 3], 2);
|
||||||
@@ -4174,7 +4174,7 @@
|
|||||||
* @returns {Array} Returns the slice of `array`.
|
* @returns {Array} Returns the slice of `array`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.dropRight([1, 2, 3], 1);
|
* _.dropRight([1, 2, 3]);
|
||||||
* // => [1, 2]
|
* // => [1, 2]
|
||||||
*
|
*
|
||||||
* _.dropRight([1, 2, 3], 2);
|
* _.dropRight([1, 2, 3], 2);
|
||||||
@@ -4931,7 +4931,7 @@
|
|||||||
* @returns {Array} Returns the slice of `array`.
|
* @returns {Array} Returns the slice of `array`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.take([1, 2, 3], 1);
|
* _.take([1, 2, 3]);
|
||||||
* // => [1]
|
* // => [1]
|
||||||
*
|
*
|
||||||
* _.take([1, 2, 3], 2);
|
* _.take([1, 2, 3], 2);
|
||||||
@@ -4963,7 +4963,7 @@
|
|||||||
* @returns {Array} Returns the slice of `array`.
|
* @returns {Array} Returns the slice of `array`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.takeRight([1, 2, 3], 1);
|
* _.takeRight([1, 2, 3]);
|
||||||
* // => [3]
|
* // => [3]
|
||||||
*
|
*
|
||||||
* _.takeRight([1, 2, 3], 2);
|
* _.takeRight([1, 2, 3], 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user