Methods

ends_withΒΆ

ends_with(haystack:Str, needle:Str)

Check whether a string ends with another string
Source: stdlib.ngs:2436

Returns

Bool

Example

"abcd".ends_with("cd")  # true
"ab".ends_with("cdab")  # false