Skip to content

Commit

Permalink
refactor(transducers): re-use even/odd from @thi.ng/checks
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 8, 2018
1 parent 68f8fc2 commit 445c857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/transducers/src/func/even.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export function even(x: number) {
return (x % 2) === 0;
}
export { isEven as even } from "@thi.ng/checks/is-even";
4 changes: 1 addition & 3 deletions packages/transducers/src/func/odd.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export function odd(x: number) {
return (x % 2) === 1;
}
export { isOdd as odd } from "@thi.ng/checks/is-odd";

0 comments on commit 445c857

Please sign in to comment.