Skip to content

endsWith

endsWith(target, source)

Checks if target string ends with source string.

ts
endsWith("hello world", "world"); // true
ts
pipe("hello world", endsWith("world")); // true