Kebab join utility for composing reuseable contants from smaller parts

This commit is contained in:
Graham Fairweather 2018-02-26 08:53:24 +01:00
parent 899ad697b0
commit 04991c13a6

View file

@ -321,3 +321,5 @@ export function setMatchMedia () {
window.matchMedia = window.matchMedia || matchMediaPolyfill; window.matchMedia = window.matchMedia || matchMediaPolyfill;
} }
} }
export const kebabJoin = (...args) => args.map(arg => `${arg}`).join('-');