Merge pull request #3051 from Xotic750/utility_kabab_join
Kebab join utility for composing reusable constants from smaller parts
This commit is contained in:
commit
7b71778db2
1 changed files with 3 additions and 1 deletions
|
@ -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('-');
|
||||||
|
|
Loading…
Add table
Reference in a new issue