Enumerable#filterBy()

filterBy (key, value) Arraypublic

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

Returns an array with just the items with the matched property. You can pass an optional second argument with the target value. Otherwise this will match any property that evaluates to true.

Parameters:

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

Returns:

Array
filtered array
doc_EmberJs
2016-11-30 16:51:56
Comments
Leave a Comment

Please login to continue.