UNPKG

@backtrace/sourcemap-tools

Version:
11 lines (10 loc) 363 B
/** * Appends `value` to `str` before trailing whitespaces in `str`. * @param str String to append to. * @param value String to append. * @example * const str = 'abc\n\n'; * const value = 'def'; * const appended = appendBeforeWhitespaces(str, value); // 'abcdef\n\n' */ export declare function appendBeforeWhitespaces(str: string, value: string): string;