From 54f05aa5cb58d90d7d5d97335d53f870dfea9584 Mon Sep 17 00:00:00 2001 From: Jan Niklas Fingerle Date: Tue, 6 Feb 2018 17:41:01 +0100 Subject: [PATCH] Update documentation in slice.js (#3631) Even though #3627 has been closed, negative indexes should be documented. --- slice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slice.js b/slice.js index 217c8a3608..a83201156e 100644 --- a/slice.js +++ b/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) {