Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block lwxbr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nblackburn / camelToKebab.js
Last active Oct 29, 2019
Convert a string from camel case to kebab case.
View camelToKebab.js
module.exports = (string) => {
return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();
You can’t perform that action at this time.