UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 493 B
//#region src/string/lastIndexOf.d.ts /** * `lastIndexOf(target, source)` * * Returns the index of the last occurrence of `source` string in `target` string, or -1 if not found. * * ```ts * lastIndexOf("hello world hello", "hello"); // 12 * ``` * * ```ts * pipe("hello world hello", lastIndexOf("hello")); // 12 * ``` */ declare const lastIndexOf: { (source: string): (target: string) => number; (target: string, source: string): number; }; //#endregion export { lastIndexOf };