cut()

Cut out a substring within a given range.

This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 60 times.

Parameters

{string} str
String to cut from.
{number} startIndex
Index within str where the substring that will be removed starts.
{number=} opt_endIndex Optional, Default:str.length
Index within str where the substring that will be removed ends.

Returns

{string}
str without the cut substring found between startIndex and opt_endIndex.

Requiring Function

This function is directly required by the following function:

  • paste()
    Pastes a string into another string while possibly replacing part of the string being pasted into.