Suppose I have an array that contains an object in yeoman prompt:
const getDatabaseName = [
{
type: 'input',
name: 'dbName',
message: 'Please enter your database name:',
default: 'testdb',
store: true
}
]
I know we could use props.dbName to retrieve user input for this object. But, how would I get the input using standard object call?
I tried this: getDatabaseName[0].dbName, but it's undefined.