For example, I have an array of properties (it's more than 3)
var propertyName = ["name", "esteira", "horse"];
and I have values of data (arrays of arrays):
var data = [["1", "2", "3"], ["3", "4", "5"], ["6", "7", "8"]];
How can I set the property key to the data?
I want to get at the result something like this:
[
{ name: "1", esteira: "2", horse: "3" },
{ name: "3", esteira: "4", horse: "5" },
{ name: "6", esteira: "7", horse: "8" }
]