'Is there a way we can input values into an array using Yeoman / Inquirer.js

To Generate a Yeo man generator I want to input an array like the list of fields which I want for a CRUD operation, to do so I want to input this information by typing fields one by one. Is there a way to do so in Yeoman which uses inquirer.js internally. Please help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source