Enumerable#findBy()

findBy (key, value) Objectpublic

Defined in packages/ember-runtime/lib/mixins/enumerable.js:539

Returns the first item with a property matching the passed value. You can pass an optional second argument with the target value. Otherwise this will match any property that evaluates to true.

This method works much like the more generic find() method.

Parameters:

key String
the property to test
value [String]
optional value to test against.

Returns:

Object
found item or `undefined`
doc_EmberJs
2016-11-30 16:51:57
Comments
Leave a Comment

Please login to continue.