(value)
| 6037 | return null; |
| 6038 | } |
| 6039 | function numberToString(value) { |
| 6040 | if (Number.isInteger(value)) { |
| 6041 | return value.toString(); |
| 6042 | } |
| 6043 | const roundedValue = Math.round(value * 100); |
| 6044 | if (roundedValue % 100 === 0) { |
| 6045 | return (roundedValue / 100).toString(); |
| 6046 | } |
| 6047 | if (roundedValue % 10 === 0) { |
| 6048 | return value.toFixed(1); |
| 6049 | } |
| 6050 | return value.toFixed(2); |
| 6051 | } |
| 6052 | function getNewAnnotationsMap(annotationStorage) { |
| 6053 | if (!annotationStorage) { |
| 6054 | return null; |
no test coverage detected