let arr = ['haha', 'haha', 'haha', 'lala', 'mama']
let res = Array.from(new Set(arr)).join()
console.log(res)
let str = '车架号'
console.log(str.indexOf('车架'))
let cond1 = false
let cond2 = false
let cond3 = false
let str1 = '车架号'
let str2 = '0'
const nodeArr = ['FKZLSC', 'ZLHC']
const nodeCode = 'ZLHC'
if (str1.indexOf('车架') > -1) {
cond1 = true
} else {
return false
}
if (str2 === '0') {
cond2 = true
}
if (nodeArr.includes(nodeCode)) {
cond3 = true
}
console.log(cond1, cond2, cond3)