util

Methods

(inner) insertText(str, text, index) → {string}

Source:

Inserts text at a given index

Parameters:
Name Type Description
str string

The string where the text should be inserted

text string

The text to be inserted

index number

The index relative to the string

Returns:

The new string

Type
string