mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Cleanup docs for _.slice and _.range. [ci skip]
This commit is contained in:
12
lodash.js
12
lodash.js
@@ -4093,17 +4093,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Slices `array` from the `start` index up to, but not including, the `end` index.
|
* Creates a slice of `array` from `start` up to, but not including, `end`.
|
||||||
*
|
*
|
||||||
* **Note:** This function is used instead of `Array#slice` to support node lists
|
* **Note:** This function is used instead of `Array#slice` to support node
|
||||||
* in IE < 9 and to ensure dense arrays are returned.
|
* lists in IE < 9 and to ensure dense arrays are returned.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Array
|
* @category Array
|
||||||
* @param {Array} array The array to slice.
|
* @param {Array} array The array to slice.
|
||||||
* @param {number} [start=0] The start index.
|
* @param {number} [start=0] The start position.
|
||||||
* @param {number} [end=array.length] The end index.
|
* @param {number} [end=array.length] The end position.
|
||||||
* @returns {Array} Returns the slice of `array`.
|
* @returns {Array} Returns the slice of `array`.
|
||||||
*/
|
*/
|
||||||
function slice(array, start, end) {
|
function slice(array, start, end) {
|
||||||
@@ -9600,7 +9600,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an array of numbers (positive and/or negative) progressing from
|
* Creates an array of numbers (positive and/or negative) progressing from
|
||||||
* `start` up to but not including `end`. If `start` is less than `end` a
|
* `start` up to, but not including, `end`. If `start` is less than `end` a
|
||||||
* zero-length range is created unless a negative `step` is specified.
|
* zero-length range is created unless a negative `step` is specified.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
|
|||||||
Reference in New Issue
Block a user