LogoAntiRaid

@antiraid-ext/strings/endswith

API reference for @antiraid-ext/strings/endswith

@antiraid-ext/strings/endswith

Functions

string_endswith

Returns ``true`` if the string `str` ends with the substring `ending`, ``false`` otherwise.

Function Signature
--- Returns \`\`true\`\` if the string \`str\` ends with the substring \`ending\`, \`\`false\`\` otherwise.
--- @param str string The string to check.
--- @param ending string The substring to check for at the end of \`str\`.
--- @return boolean \`\`true\`\` if \`str\` ends with \`ending\`, \`\`false\`\` otherwise.
function string_endswith(str: string, ending: string) end

Arguments

str

string The string to check.

string

ending

string The substring to check for at the end of `str`.

string

Last updated on