Skip to content

Commit

Permalink
xor
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Aug 28, 2023
1 parent 8406b0c commit 7f07ca1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/ember-truth-helpers/src/helpers/xor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { helper } from '@ember/component/helper';
import truthConvert from '../utils/truth-convert.ts';

export interface XorSignature {
Expand All @@ -8,6 +7,6 @@ export interface XorSignature {
Return: boolean;
}

export default helper<XorSignature>((params) => {
return truthConvert(params[0]) !== truthConvert(params[1]);
});
export default function xor(left: unknown, right: unknown) {
return truthConvert(left) !== truthConvert(right);
}

0 comments on commit 7f07ca1

Please sign in to comment.