I'm slightly stuck with the ES6 array.prototype methods and don't really know how to implement this properly. The goal is to map the following object (let's assume it's called attribues) and get attribute_label value into a new array. It is also important to check this value to avoid null. The result should be a new array, full of string values:
{
"size": {
"attribute_label": "Size",
"code": null
},
"color": {
"attribute_label": "Color",
"code": 24
},
"material": {
"attribute_label": "Material",
"code": null
}
}