UNPKG

@samlevy/string-helpers

Version:
13 lines (11 loc) 204 B
import normalize from "./normalize"; /** * Convert a string to StudlyCase * * @param str */ export default (str: string): string => str .split(/[^a-z0-9]/gi) .map(normalize) .join("");