var arr = Array.apply(null, Array(5)).map(function (item, i) { return { id: ++i, green: false, red: false, blue: false } }); alert(JSON.stringify(arr, null, ' '));