16 lines
320 B
JavaScript
16 lines
320 B
JavaScript
import Helper from "@ember/component/helper";
|
|
|
|
export function gt([left, right], hash) {
|
|
if (hash.forceNumber) {
|
|
if (typeof left !== "number") {
|
|
left = Number(left);
|
|
}
|
|
if (typeof right !== "number") {
|
|
right = Number(right);
|
|
}
|
|
}
|
|
return left > right;
|
|
}
|
|
|
|
export default Helper.helper(gt);
|