@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
12 lines • 394 B
TypeScript
/**
* Gets separated words from string
* @param str{String} - source string
* @return {String[]}
* @example
* // How do I split a string into a list of words?
* const str = "helloWorld! what's_up?";
* const words = getWords(str);
* console.log(words); // => [ "hello", "World", "what", "s", "up" ]
*/
export function getWords(str: string): string[];
//# sourceMappingURL=index.d.ts.map