[Vuejs]-How to use Math.round to round values returned from JSON object in Vue.js

3👍

> const roundedValue = () => {
>    const roundData = {}

>    Object.keys(data.value).map(key => {
>     return roundData[key] = Math.round(data.value[key]);                
>    })
> 
>   return roundData
> }

You can try this. The function returned round value

Leave a comment