0
我想創建數組的非重複行從數組結束從另一個數組開始。如何檢查一個字符串匹配正則表達式已存在與javascript陣列
我嘗試這樣做:
for(var i = len; i > 0; i--){
if(resultArray[i] != undefined && resultArray[i].match(blahRegex)){
if(lastArray[blahRegex]){
console.log("entering here")
lastArray.push(resultArray[i])
}
// console.log(resultArray[i])
}
我們需要輸入* *和*預期輸出* ... –