v0.13.6

string.endswith

functionimplementedavailable in: camelot

Returns true if a string ends with the specified suffix.

signaturewowlua
function string.endswith(    str: stringView,    suffix: stringView): boolean

Parameters

nametypedescription
strstringViewThe string to inspect.
suffixstringViewThe suffix for which to search.

Returns

endsWith · boolean · True if the string ends with the specified suffix; otherwise false.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaStringExtensions system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.