From b745eb447e1c9207b0821b51468700ae8ca1bf64 Mon Sep 17 00:00:00 2001 From: lvcky-gg Date: Sat, 7 Oct 2023 13:08:05 -0500 Subject: [PATCH 1/2] init --- index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index a5e3f7b..3167fc6 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,9 @@ const iseven = require('is-even'); +const isOdd = require('is-odd'); +const isEven = num =>iseven(num); +const isOdd = num =>isOdd(num); - -module.exports = function(num) { - return iseven(num); +module.exports = { + isEven, + isOdd } From 98f5d06b738d6f92993f9cd5e8463c34f54291e1 Mon Sep 17 00:00:00 2001 From: lvcky-gg Date: Sat, 7 Oct 2023 13:12:40 -0500 Subject: [PATCH 2/2] made recommended changes --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 3167fc6..4f5a4aa 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,9 @@ const iseven = require('is-even'); const isOdd = require('is-odd'); -const isEven = num =>iseven(num); -const isOdd = num =>isOdd(num); +const notOdd = num =>iseven(num); +const notEven = num =>isOdd(num); module.exports = { - isEven, - isOdd + notOdd, + notEven }