Hey I would like to create a new array, from those two elements looking like this:
var a = {szerokosc: 42, wysokosc: 53, dlugosc: null} // an object
var b = ['dlugosc', '*', 'szerokosc', '+', 'wysokosc'] // an array
The code must work if the correct name is found. At the End I hope to receive an array like this one:
var c = ['0', '*', '42', '+', '53']
If anyone can tell me how to achieve this, I'd appreciate it. Thanks in advance.