Skip to content

Commit c61517d

Browse files
committed
Add basic eq helper
We could also consider using https://github.com/jmurphyau/ember-truth-helpers instead if we start to use this more and/or need other, related helpers
1 parent 82e3c47 commit c61517d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/helpers/eq.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { helper } from '@ember/component/helper';
2+
3+
export function eq([a, b]) {
4+
return a === b;
5+
}
6+
7+
export default helper(eq);

0 commit comments

Comments
 (0)