(specifier, value1)
| 15394 | return format; |
| 15395 | } |
| 15396 | function formatPrefix(specifier, value1) { |
| 15397 | var f = newFormat((specifier = (0, _formatSpecifierJsDefault.default)(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor((0, _exponentJsDefault.default)(value1) / 3))) * 3, k = Math.pow(10, -e), prefix = prefixes[8 + e / 3]; |
| 15398 | return function(value) { |
| 15399 | return f(k * value) + prefix; |
| 15400 | }; |
| 15401 | } |
| 15402 | return { |
| 15403 | format: newFormat, |
| 15404 | formatPrefix: formatPrefix |
no test coverage detected