I have an object array. I need to convert it single array without key.
I need array like this:
["test","test"]
I also need to remove that value if I got undefined
instead of other value.
My code:
const list = [
{
"type": "undefined"
},
{
"type": "test"
},
{
"type": "test"
}
]
var findAndValue = list.map(Object.values);
console.log(findAndValue);