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 "";