UNPKG

suffix-from

Version:

Get suffix from string - by splitter.

9 lines (8 loc) 416 B
/** * @description Get suffix from string * @param {string} subject subject The string to get the suffix from * @param {(string | RegExp)} splitter splitter From where the suffix should be start from * @returns {string} The suffix that found */ export declare function suffixFrom(subject: string, splitter: RegExp): string; export declare function suffixFrom(subject: string, splitter: string): string;