insert method

insert(index, value)

Inserts a string into the collection at the specified index.

insert(index: number, value: string)
ParameterTypeDescription
indexnumberThe zero-based index at which value is inserted.
valuestringThe string to insert.

See Also