I have an array like this-
[{a:23},{b:23},{r:2323},{e:99}]
I want to convert this to a new array containing only the object property values like-
[23,23,2323,99]
I have tried all the methods but could not figure out the way. Can anyone suggest me the idea for this please.
arr.map((o) => Object.values(o)).flat();orarr.flatMap((o) => Object.values(o));Though should should show what research you've done and any attempts you've made to solve the problem yourself