diff --git a/packages/@ember/-internals/runtime/lib/mixins/array.js b/packages/@ember/-internals/runtime/lib/mixins/array.js index 6b732c2db7d..2af24bf7ab6 100644 --- a/packages/@ember/-internals/runtime/lib/mixins/array.js +++ b/packages/@ember/-internals/runtime/lib/mixins/array.js @@ -678,7 +678,20 @@ const ArrayMixin = Mixin.create(Enumerable, { }, /** - Alias for `mapBy` + Alias for `mapBy`. + + Returns the value of the named + property on all items in the enumeration. + + ```javascript + let people = [{name: 'Joe'}, {name: 'Matt'}]; + + people.getEach('name'); + // ['Joe', 'Matt']; + + people.getEach('nonexistentProperty'); + // [undefined, undefined]; + ``` @method getEach @param {String} key name of the property