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
Source:stackexchange.com