param { number } fPrice param { ? boolean } cents export default function transformPrice ( fPrice , isCents = true ) { const cents = isCents ? 2 : 0 ; const yPrice = ( fPrice / 100 ) . toFixed ( cents ) ; return yPrice ; }