« first day (21 days earlier)    last day (15 days later) » 

7:50 AM
Hello, I have this type of javascript array A and convert it to like B .
A: ["Leg", "Crown", "Box SKU", "Pcs./ Box", "Boxes/ Shipping Carton"]

B: [
{ name: "Leg", type: "text" },
{ name: "Crown", type: "text" },
{ name: "Box SKU", type: "text" },
{ name: "Pcs./ Box", type: "text" },
{ name: "Boxes/ Shipping Carton", type: "text" }
]

Please help me
 

« first day (21 days earlier)    last day (15 days later) »