linstrom/frontend-reactive/app/helpers/equals.ts

8 lines
196 B
TypeScript
Raw Normal View History

2024-10-28 15:33:17 +00:00
import { helper } from '@ember/component/helper'
export default helper(function equals(args) {
2024-10-28 15:33:17 +00:00
if (args.length != 2) return false
console.log(args[0], args[1])
return args[0] == args[1]
})