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 a6b721f commit 6100022Copy full SHA for 6100022
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