From d23db35657d31e24805e44105e095beb7bfbe5b8 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Tue, 16 Jun 2020 18:53:22 +0200 Subject: [PATCH] Remove old me.js node module --- client/src/me.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 client/src/me.js diff --git a/client/src/me.js b/client/src/me.js deleted file mode 100644 index e40d354..0000000 --- a/client/src/me.js +++ /dev/null @@ -1,21 +0,0 @@ -module.exports = { - age: age, -} - -function age() { - let birthdate = new Date(2002, 8, 29) - let now = new Date() - - let age = now.getFullYear() - birthdate.getFullYear() - - if (now.getMonth() < birthdate.getMonth()) { - age-- - } - if ( - birthdate.getMonth() === now.getMonth() && - now.getDate() < birthdate.getDate() - ) { - age-- - } - return age -}