When looping through an array of objects, how do I push object values into a new array?

前端 未结 0 1742
粉色の甜心
粉色の甜心 2021-01-16 09:30

Suppose you have the following array:

const arr = [
  {\'stars\': 5},
  {\'stars\': 4},
  {\'stars\':5}
]

How would one go about extracting a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题