Commit 7b71778db25fd971faf81df30a429683bf4a35fe
Committed by
GitHub

Merge pull request #3051 from Xotic750/utility_kabab_join
Kebab join utility for composing reusable constants from smaller parts
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/utils/assist.js
@@ -320,4 +320,6 @@ export function setMatchMedia () { | @@ -320,4 +320,6 @@ export function setMatchMedia () { | ||
320 | }; | 320 | }; |
321 | window.matchMedia = window.matchMedia || matchMediaPolyfill; | 321 | window.matchMedia = window.matchMedia || matchMediaPolyfill; |
322 | } | 322 | } |
323 | -} | ||
324 | \ No newline at end of file | 323 | \ No newline at end of file |
324 | +} | ||
325 | + | ||
326 | +export const kebabJoin = (...args) => args.map(arg => `${arg}`).join('-'); |