@antiraid-ext/strings/insert
API reference for @antiraid-ext/strings/insert
@antiraid-ext/strings/insert
Functions
string_insert
Returns a new string with `text` inserted at position `pos` in `str`.
Function Signature
--- Returns a new string with \`text\` inserted at position \`pos\` in \`str\`.
--- @param str string The original string.
--- @param pos number The position at which to insert \`text\` (1-based index).
--- @param text string The text to insert.
--- @return string The new string with \`text\` inserted at the specified position.
function string_insert(str: string, pos: number, text: string) end
Arguments
str
string The original string.
pos
number The position at which to insert `text` (1-based index).
text
string The text to insert.
Last updated on