Skip to content

Commit

Permalink
Merge pull request #10137 from vitch/patch-3
Browse files Browse the repository at this point in the history
[DOC] Clear up description for isAny/isEvery
  • Loading branch information
stefanpenner committed Jul 8, 2015
2 parents 8767515 + 159a1ad commit a6e119d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/ember-runtime/lib/mixins/enumerable.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,12 +636,13 @@ export default Mixin.create({
everyProperty: aliasMethod('isEvery'),

/**
Returns `true` if the passed property resolves to `true` for all items in
the enumerable. This method is often simpler/faster than using a callback.
Returns `true` if the passed property resolves to the value of the second
argument for all items in the enumerable. This method is often simpler/faster
than using a callback.
@method isEvery
@param {String} key the property to test
@param {String} [value] optional value to test against.
@param {String} [value] optional value to test against. Defaults to `true`
@return {Boolean}
@since 1.3.0
@public
Expand Down Expand Up @@ -748,12 +749,13 @@ export default Mixin.create({
some: aliasMethod('any'),

/**
Returns `true` if the passed property resolves to `true` for any item in
the enumerable. This method is often simpler/faster than using a callback.
Returns `true` if the passed property resolves to the value of the second
argument for any item in the enumerable. This method is often simpler/faster
than using a callback.
@method isAny
@param {String} key the property to test
@param {String} [value] optional value to test against.
@param {String} [value] optional value to test against. Defaults to `true`
@return {Boolean}
@since 1.3.0
@private
Expand Down

0 comments on commit a6e119d

Please sign in to comment.