sum() Helper
Import Path: addon/helpers/sum
A helper that adds two numbers
Signature:
export default function sum(a: number, b: number): number;
Parameters
Parameter | Type | Description |
---|---|---|
a | number | left side |
b | number | right side |
Returns:
number
the sum of the left and right side
Example
This is a helper that can be used in
import sum from 'my-addon/helpers/sum';
export default <template>{{sum 1 2}}</template>