I need to create an array of object literals like this:
var myColumnDefs = [ {key:\"label\", sortable:true, resizeable:true}, {key:\"notes\", sortabl
If you want to go even further than @tetra with ES6 you can use the Object spread syntax and do something like this:
let john = { firstName: "John", lastName: "Doe", }; let people = new Array(10).fill().map((e, i) => {(...john, id: i});