uniqBy (dependentKey, propertyKey) Ember.ComputedPropertypublic
Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:379
A computed property which returns a new array with all the unique elements from an array, with uniqueness determined by specific key. Example let Hamster = Ember.Object.extend({
uniqueFruits: Ember.computed.uniqBy('fruits', 'id')
});
let hamster = Hamster.create({
fruits: [
{ id: 1, 'banana' },
{ id: 2, 'grape' },
{ id: 3, 'peach' },