I wanted to join 2 arrays of the same length. However I want to join each element of with it's counterpart and produce a new array with the combined values.
// will always be string
var array = [a, b, c, d]
// Will always be number
var array2 = [1, 2, 0, 4,]
var output = [a1, b2, c0, d4]
I then want to edit the output array removing any values of 0. So my final output should be:
var result = [a1, b2, d4]
Any thoughts and suggestions much appreciated.