UNPKG

hd-utils

Version:

A handy utils for modern JS developers

10 lines (9 loc) 367 B
/** * @description It splits a string into an array of strings, where each string is a word, number, or capitalized * word * @example splitUpperCase("JavaScript") // ["Java", "Script"] * @param {string} str - string - The string to split * @returns An array of strings. */ declare const splitUpperCase: (str: string) => string[]; export default splitUpperCase;