export function roundToNearestFiveOrTen ( value ) { const five = Math . pow ( 10 , Math . floor ( Math . log10 ( value ) ) ) * 5 ; const ten = Math . pow ( 10 , Math . round ( Math . log10 ( value ) ) ) ; return Math . abs ( five - value ) < Math . abs ( ten - value ) ? five : ten ; }