Having the following
let el = [{a: "a", i: 1},{a: "b", i: 2},{a: "c", i: 3}]
How to get
[1,2,3]
Ive tried
let arr = el.map(i => return [...i.i])
Having the following
let el = [{a: "a", i: 1},{a: "b", i: 2},{a: "c", i: 3}]
How to get
[1,2,3]
Ive tried
let arr = el.map(i => return [...i.i])