splice
Deletes the indicated array elements and replaces them with the specified elements.
Declaration
Array splice(
in int start,
in int deleteCount,
in Object elements
);Parameters
- index:
The array index indicating the beginning of the splice to be deleted.
- howMany:
The length of the splice, in number of elements.
- elements:
An array of new elements that are replacing the deleted elements.
Return Value
An array of the deleted elements.
Discussion
Use this method to modify the contents of the playlist.