import { Coordinate } from '../../plugins/apm/typings/timeseries' ; import { isFiniteNumber } from '../../plugins/apm/common/utils/is_finite_number' ; import { Maybe } from '../../plugins/apm/typings/common' ; export function roundNumber ( num ) { return isFiniteNumber ( num ) ? num . toPrecision ( 4 ) : '' ; } export function removeEmptyCoordinates ( coordinates ) { return coordinates . filter ( ( { y } ) => isFiniteNumber ( y ) ) ; }