原数组
[“照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “空调”, “插排”, “监控”, “照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “生产”]
typeArr = [... new Set(typeArr)]
去重后
[“照明”, “空调”, “插排”, “监控”, “生产”]
原数组
[“照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “空调”, “插排”, “监控”, “照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “照明”, “生产”]
typeArr = [... new Set(typeArr)]
去重后
[“照明”, “空调”, “插排”, “监控”, “生产”]