From 3badcb52a704748477c0347e4fb919891c2ddd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D1=83=D0=BA=D0=B0?= <164436043+diamond-ore@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:30:17 -0400 Subject: [PATCH] simplification also known as "im trying to get my daily commit in" --- techdemos/encode/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/techdemos/encode/js/main.js b/techdemos/encode/js/main.js index f0d666f..9677502 100644 --- a/techdemos/encode/js/main.js +++ b/techdemos/encode/js/main.js @@ -10,8 +10,8 @@ const output = document.getElementById("outputText"); const codes = { "Base64": { - encode: text => btoa(text), - decode: text => atob(text) + encode: btoa, + decode: atob }, "Base16 (Hexadecimal)": { encode: text => text.split("").map(c => c.charCodeAt(0).toString(16).padStart(2, "0")).join("").toUpperCase(),