(str: string)
| 220 | * @returns string |
| 221 | */ |
| 222 | const camel2title = (str: string) => { |
| 223 | if (!str) return str |
| 224 | return str |
| 225 | .replace(/([A-Z])/g, (match: string) => ` ${match}`) |
| 226 | .replace(/^./, (match: string) => match.toUpperCase()) |
| 227 | .trim() |
| 228 | } |
| 229 | |
| 230 | /** |
| 231 | * Compares steps to DOM order and reorders steps if needed |
no outgoing calls
no test coverage detected