Commit 04991c13a69ed68ee4c4b2c334deaa48271c30e6

Authored by Graham Fairweather
1 parent 899ad697

Kebab join utility for composing reuseable contants 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 320 };
321 321 window.matchMedia = window.matchMedia || matchMediaPolyfill;
322 322 }
323   -}
324 323 \ No newline at end of file
  324 +}
  325 +
  326 +export const kebabJoin = (...args) => args.map(arg => `${arg}`).join('-');
... ...