From c6a0739dc9a3653b121576c06a851a5e1ae4683e Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 16 Aug 2019 03:28:28 +1000 Subject: [PATCH] fix(docs): Fixed the docs for Array#slice not spec (#31182) ifying that the 'end' parameter is exclusive. --- src/lib/es5.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 2594344dec..02a487d6d8 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -1094,7 +1094,7 @@ interface ReadonlyArray { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): T[]; /** @@ -1230,7 +1230,7 @@ interface Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): T[]; /** @@ -1860,7 +1860,7 @@ interface Int8Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Int8Array; @@ -2135,7 +2135,7 @@ interface Uint8Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint8Array; @@ -2410,7 +2410,7 @@ interface Uint8ClampedArray { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint8ClampedArray; @@ -2683,7 +2683,7 @@ interface Int16Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Int16Array; @@ -2959,7 +2959,7 @@ interface Uint16Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint16Array; @@ -3234,7 +3234,7 @@ interface Int32Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Int32Array; @@ -3508,7 +3508,7 @@ interface Uint32Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Uint32Array; @@ -3783,7 +3783,7 @@ interface Float32Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Float32Array; @@ -4059,7 +4059,7 @@ interface Float64Array { /** * Returns a section of an array. * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. + * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ slice(start?: number, end?: number): Float64Array;