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

8 lines
201 B
TypeScript
Raw Permalink Normal View History

import { helper } from '@ember/component/helper';
export default helper(function equals(args) {
if (args.length != 2) return false;
console.log(args[0], args[1]);
return args[0] == args[1];
});