Skip to content

endsWith

endsWith(suffix): (s) => boolean

Defined in: Utils/Str.ts:67

Returns true when the string ends with the given suffix.

string

(s): boolean

string

boolean

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