// 假设有一个映射对象
const valueLabelMap = {
'value1': 'Label 1',
'value2': 'Label 2',
'value3': 'Label 3'
};
// 需要查找的数组
const values = ['value1', 'value2', 'valueX'];
// 查找对应的标签并构造一个新数组
const labels = values.map(value => valueLabelMap[value] || 'Unknown');
console.log(labels); // ['Label 1', 'Label 2', 'Unknown']