I am trying to access the id value e.g {“id”: 3,} in an array of objects through user input, but the user input is name value e.g {“ name”: “cerulean”} in the same object containing the id value I want to targeting. see sample image. for every user input I’m suppose to push the returned id values into a new array.enter image description here
评论
请
登录后发表观点
- 积分
0 - 话题
0 - 评论
3242 - 注册排名
1503