I am attempting to output a variable as an array like
[ 'Google', 'Facebook', 'Twitter', 'Apple', 'Oracle' ]
However, the result I am receiving is:
Google
Facebook
Twitter
Barishal
Oracle
The code I have in setup() :
const stringOptions = axios.get('https://api.com').then(response
=> {
Object.keys(response.data.divisions).forEach(key => {
var a = response.data.divisions[key].name
console.log(a)
})
})