Ember.js how to load an array of simple ember objects
ember.js
Solution
I'd `map` instead of using `forEach`:
pojos.map(function(obj){
return Ember.Object.create().setProperties(obj);
});
Problem
What is the best way of creating an array of ember objects from an array of json objects objects? I can use SetProperties on each individual object like this: ``` var ret = Ember.A(); pojos.forEach(function(obj){ var em = Ember.Object.create({}); emCluster.setProperties(obj); ret.push(emCluster); }); ``` But is there a one line way of obtaining the same result?