Kebab join utility for composing reuseable contants from smaller parts
This commit is contained in:
parent
899ad697b0
commit
04991c13a6
1 changed files with 3 additions and 1 deletions
|
@ -321,3 +321,5 @@ export function setMatchMedia () {
|
|||
window.matchMedia = window.matchMedia || matchMediaPolyfill;
|
||||
}
|
||||
}
|
||||
|
||||
export const kebabJoin = (...args) => args.map(arg => `${arg}`).join('-');
|
||||
|
|
Loading…
Add table
Reference in a new issue