github
13 of 238 branches covered (5.46%)
Branch coverage included in aggregate %.
0 of 472 new or added lines in 41 files covered. (0.0%)
19728 existing lines in 193 files now uncovered.91 of 28170 relevant lines covered (0.32%)
0.02 hits per line
UNCOV
1
|
// luma.gl, MIT license
|
|
UNCOV
2
|
// Copyright (c) vis.gl contributors
|
× |
UNCOV
3
|
|
× |
UNCOV
4
|
/**
|
× |
UNCOV
5
|
* Capitalize first letter of a string |
× |
UNCOV
6
|
* @param {string} str |
× |
UNCOV
7
|
* @returns {string} |
× |
UNCOV
8
|
*/ |
× |
UNCOV
9
|
export function capitalize(str: string): string { |
× |
UNCOV
10
|
return typeof str === 'string' ? str.charAt(0).toUpperCase() + str.slice(1) : str; |
× |
UNCOV
11
|
} |
× |