O
Например:
const a = 21.756;
const b = 97.89;
const c = 10.272;
const a1 = a.toFixed(2);
const b1 = b.toFixed(2);
const c1 = c.toFixed(2);
const tot = a1+b1+c1;
Результат выходит 21.7697.8910.27
оберни в Number
Size: a a a
O
V
AE
KS
AE
KS
O
[
{type: 'something1', second: 'data1'},
{type: 'something2', second: 'data2'},
{type: 'something3', second: 'data3'},
{type: 'something4', second: 'data4'}
]
['something1','something2','something3','something4']
const res = data.map(el => el.type)
DS
const res = data.map(el => el.type)
V
AE
KS
K
K
AE
K
K
AE
K
V
O
const res = data.map(el => el.type).map(type => {