(word: string)
| 258 | * @returns string capitalized string |
| 259 | */ |
| 260 | export function capitalizeFirstLetter(word: string) { |
| 261 | if (!word || !isString(word) || word.length === 0) { |
| 262 | return word; |
| 263 | } |
| 264 | return word[0].toUpperCase() + word.slice(1); |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * check str passed in is a string type of not |
no test coverage detected
searching dependent graphs…