We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sum
1 parent 4d126de commit 213ed75Copy full SHA for 213ed75
app/helpers/sum.js
@@ -0,0 +1,5 @@
1
+import { helper } from '@ember/component/helper';
2
+
3
+export default helper(function ([...values]) {
4
+ return values.reduce((a, b) => a + b, 0);
5
+});
0 commit comments