Duplicates an array or a string and adds and/or removes one or more values from it. NOTE: This is different from the traditional splice function because it doesn't modify the array, but rather it returns a modified duplicate.
The array or string to be duplicated and modified.
The index at which to start modifying arrOrStr. If this number is negative the index will be calculated from the end of arrOrStr.
Optional. Defaults to Infinity. Indicates the amount of indices that should be removed from arrOrStr. If negative this will be used as if it were an index counting from the end of arrOrStr.
Optional. If specified, this will be inserted at start. If arrOrStr is an array, this should be an array of the values to insert at start. If arrOrStr is a string, this should be the string to insert at start.