All files / util formatters.js

100% Statements 2/2
100% Branches 0/0
100% Functions 2/2
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10      16x       17x    
import * as d3Format from 'd3-format';
 
export function formatAbbreviatedNumber(value) {
	return d3Format.format('.2s')(value).replace('G', 'B');
}
 
export function formatThousands(value) {
	return d3Format.format(',.0f')(value);
}