UNPKG

@finsweet/ts-utils

Version:

Typescript utils for custom Webflow projects.

7 lines (6 loc) 223 B
/** * Removes all the spaces of a string. * @param string * @returns The string without spaces. Example: "The quick brown fox" => "Thequickbrownfox" */ export const removeSpaces = (string) => string.replace(/\s/g, '');