My objective is to generate an array containing non-duplicate lines starting from the end of one array to the beginning of another array.
Here is what I attempted:
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])
}