JSFiddle - React, Tailwind, and code Playground
JavaScript
var list = ["2016/03/31", "2016/03/30", "2016/03/29", "2016/03/28", "2016/03/27", "2016/04/01"]
var newList = list.map(function(x) {
return {
'date': x
}
})
console.log(newList);
var list = ["2016/03/31", "2016/03/30", "2016/03/29", "2016/03/28", "2016/03/27", "2016/04/01"]
var newList = list.map(function(x) {
return {
'date': x
}
})
console.log(newList);