UNPKG

@samlevy/string-helpers

Version:
2 lines (1 loc) 76 B
export default (str: string): string => str.replaceAll(/\s+/g, " ").trim();