@@ -24,8 +24,8 @@ export interface AddSignature {
2424}
2525
2626export default class AddHelper extends Helper <AddSignature > {
27- public compute(positional : Positional , named : Named ): number {
28- let total = positional .reduce ((sum , next ) => sum + next , 0 );
27+ public compute(values : Positional , named : Named ): number {
28+ let total = values .reduce ((sum , next ) => sum + next , 0 );
2929 if (typeof named .andThenMultiplyBy === ' number' ) {
3030 total *= named .andThenMultiplyBy ;
3131 }
@@ -49,7 +49,7 @@ export interface AddSignature {
4949}
5050
5151const add = helper <AddSignature >((values , { andThenMultiplyBy }) => {
52- let total = positional .reduce ((sum , next ) => sum + next , 0 );
52+ let total = values .reduce ((sum , next ) => sum + next , 0 );
5353 if (typeof andThenMultiplyBy === ' number' ) {
5454 total *= andThenMultiplyBy ;
5555 }
@@ -66,7 +66,7 @@ export default add;
6666import { helper } from ' @ember/component/helper' ;
6767
6868const add = helper ((values : Array <number >, named : { andThenMultiplyBy? : number }) => {
69- let total = positional .reduce ((sum , next ) => sum + next , 0 );
69+ let total = values .reduce ((sum , next ) => sum + next , 0 );
7070 if (typeof named .andThenMultiplyBy === ' number' ) {
7171 total *= named .andThenMultiplyBy ;
7272 }
0 commit comments