Is there a way to use an array of objects to populate choices in inquirer?

前端 未结 0 1063
渐次进展
渐次进展 2020-12-12 05:04

How do I get the choices to be just a specific value from all objects in the array?

Here\'s an example array:

var array = 
[{
  a: 1,
  b: 2,
},
{
 a:          


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