|
87 | 87 | // /**
|
88 | 88 | // * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
89 | 89 | // * @param start The zero-based location in the array from which to start removing elements.
|
90 |
| -// * @param deleteCount The number of elements to remove. |
| 90 | +// * @param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start |
| 91 | +// * paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type |
| 92 | +// * that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements. |
91 | 93 | // * @returns An array containing the elements that were deleted.
|
92 | 94 | // */
|
93 | 95 | // splice(start: number, deleteCount?: number): T[];
|
94 | 96 | // /**
|
95 | 97 | // * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
96 | 98 | // * @param start The zero-based location in the array from which to start removing elements.
|
97 |
| -// * @param deleteCount The number of elements to remove. |
| 99 | +// * @param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero, |
| 100 | +// * undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and |
| 101 | +// * not remove any elements. |
98 | 102 | // * @param items Elements to insert into the array in place of the deleted elements.
|
99 | 103 | // * @returns An array containing the elements that were deleted.
|
100 | 104 | // */
|
|
340 | 344 | // /**
|
341 | 345 | // * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
342 | 346 | // * @param start The zero-based location in the array from which to start removing elements.
|
343 |
| -// * @param deleteCount The number of elements to remove. |
| 347 | +// * @param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start |
| 348 | +// * paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type |
| 349 | +// * that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements. |
344 | 350 | // * @returns An array containing the elements that were deleted.
|
345 | 351 | // */
|
346 | 352 | // splice(start: number, deleteCount?: number): T[];
|
347 | 353 | // /**
|
348 | 354 | // * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
349 | 355 | // * @param start The zero-based location in the array from which to start removing elements.
|
350 |
| -// * @param deleteCount The number of elements to remove. |
| 356 | +// * @param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero, |
| 357 | +// * undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and |
| 358 | +// * not remove any elements. |
351 | 359 | // * @param items Elements to insert into the array in place of the deleted elements.
|
352 | 360 | // * @returns An array containing the elements that were deleted.
|
353 | 361 | // */
|
|
0 commit comments