@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
12 lines (9 loc) • 336 B
JavaScript
import { isNumber } from './chunk-N7YWL7WT.mjs';
// src/formatLot10Volume.ts
function formatLot10Volume(volume, precision = 0, defaultValue = "-") {
if (!isNumber(volume)) {
return defaultValue;
}
return (volume * 10)?.toLocaleString("en", { minimumFractionDigits: precision }).slice(0, -1);
}
export { formatLot10Volume };