I have a case where I need to compare between two arrays and display values from another.; For example, I have two arrays:
let a = ['a','b','c'];
let b = ['textA' 'textB', ' '];
So, I am basically trying to loop over the array b and display value like this:
textA
textB
C
So, when there are any empty values found in array b, display the same indexed values from array a.
Can anybody help with this. Thanks in advance.