Skip to content

endsWith

endsWith(suffix): (s) => boolean

Defined in: Data/Str.ts:91

Returns true when the string ends with the given suffix.

string

(s) => boolean

pipe("hello world", Str.endsWith("world")); // true
pipe("hello world", Str.endsWith("hello")); // false