UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 422 B
//#region src/string/endsWith.d.ts /** * `endsWith(target, source)` * * Checks if `target` string ends with `source` string. * * ```ts * endsWith("hello world", "world"); // true * ``` * * ```ts * pipe("hello world", endsWith("world")); // true * ``` */ declare const endsWith: { (source: string): (target: string) => boolean; (target: string, source: string): boolean; }; //#endregion export { endsWith };