Converts a given camel-cased string to a dash-cased string.
(name: string)
| 70 | |
| 71 | /** Converts a given camel-cased string to a dash-cased string. */ |
| 72 | function convertToDashCase(name: string): string { |
| 73 | name = name.replace(/[A-Z]/g, ' $&'); |
| 74 | name = name.toLowerCase().trim(); |
| 75 | return name.split(' ').join('-'); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Analyzes the examples by parsing the given TypeScript files in order to find |
no outgoing calls
no test coverage detected
searching dependent graphs…