mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Update documentation in slice.js (#3631)
Even though #3627 has been closed, negative indexes should be documented.
This commit is contained in:
committed by
John-David Dalton
parent
47a6d538f5
commit
54f05aa5cb
4
slice.js
4
slice.js
@@ -8,8 +8,8 @@
|
||||
* @since 3.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to slice.
|
||||
* @param {number} [start=0] The start position.
|
||||
* @param {number} [end=array.length] The end position.
|
||||
* @param {number} [start=0] The start position. A negative index will be treated as an offset from the end.
|
||||
* @param {number} [end=array.length] The end position. A negative index will be treated as an offset from the end.
|
||||
* @returns {Array} Returns the slice of `array`.
|
||||
*/
|
||||
function slice(array, start, end) {
|
||||
|
||||
Reference in New Issue
Block a user