let firstArr = [
{
text: 'Lorem',
type: 'string'
},
{
text: 'Ipsum',
type: 'string'
},
{
text: 32,
type: 'integer'
},
{
text: 64,
type: 'string'
},
{
text: 128,
type: 'string'
},
]
let secondArr = []
for(let item of firstArr){
secondArr.push(item.text)
}
console.log(secondArr)
let secondArr = firstArr.map(item => item.text)
console.log(secondArr)