UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

20 lines (19 loc) 341 B
/** * remove prefix from string * * @since 5.5.0 * @category String * @param str to be processed string * @param prefix prefix string * * @see [[trimSuffix]] * * * ```js * trimPrefix("123456", "123") * // => '456' * ``` * */ export declare function trimPrefix(str: string, prefix: string): string; export default trimPrefix;