cut()

Cut out a substring within a given range.

This function is valid in v2.0.0 to v2.14.0. This function has been downloaded 45 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.