Merge pull request #3051 from Xotic750/utility_kabab_join

Kebab join utility for composing reusable constants from smaller parts
This commit is contained in:
Aresn 2018-02-26 17:23:34 +08:00 committed by GitHub
commit 7b71778db2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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