Skip to content

Commit

Permalink
Update documentation in slice.js (#3631)
Browse files Browse the repository at this point in the history
Even though #3627 has been closed, negative indexes should be documented.
  • Loading branch information
jnfingerle authored and jdalton committed Feb 6, 2018
1 parent 47a6d53 commit 54f05aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slice.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 54f05aa

Please sign in to comment.