UNPKG

@n3okill/utils

Version:
8 lines (7 loc) 314 B
/** * Remove given characters from left and right side of the string * @param str String to remove characters from * @param chars The characters to remove, if not defined removes empty spaces * @returns Trimmed string */ export declare function trim(str: string | null | undefined, chars?: string[]): string;