We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dde9ab commit 950c2bdCopy full SHA for 950c2bd
ui/app/helpers/eq-by.js
@@ -9,7 +9,7 @@ import { helper } from '@ember/component/helper';
9
* Returns true when obj1 and obj2 have the same value for property "prop"
10
*/
11
export function eqBy([prop, obj1, obj2]) {
12
- if (!obj1 || !obj2) return false;
+ if (!prop || !obj1 || !obj2) return false;
13
return get(obj1, prop) === get(obj2, prop);
14
}
15
0 commit comments