Pasted
Archive
[Javascript][Math] fload array reduce safely
kromm77
|
PRO
|
03/22/21 10:22:53 AM UTC
|
0 ⭐
|
889 👁️
|
Never ⏰
|
[]
JavaScript
|
80 B
|
None
|
0 👍
/
0 👎
Raw
Download
Clone
Embed
Print
View
Choose
Raw
Download
Clone
Embed
Print
View
arr = [0.1, 0.2] arr.reduce((el,count)=> parseFloat((el + count).toFixed(10)));
Comments
Comments