From cb9f506b6551aace22557eb84fd899001f84657b Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 16 Jul 2025 17:44:20 +0900 Subject: [PATCH] =?UTF-8?q?join(..)=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/base/base.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/webapp/resources/js/base/base.js b/src/main/webapp/resources/js/base/base.js index 88235cf..aa1c135 100644 --- a/src/main/webapp/resources/js/base/base.js +++ b/src/main/webapp/resources/js/base/base.js @@ -58,6 +58,14 @@ function notEmpty(obj, msg) { return obj; } +function join(delimeter, ...args) { + if (!args) return ""; + + return args.flat() + .filter(e => !isEmpty(e)) + .join(delimeter || " ") +} + function toQuery(map, encode) { if (isEmpty(map)) return "";