1 var createCompounder = require('./_createCompounder');
4 * Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
9 * @param {string} [string=''] The string to convert.
10 * @returns {string} Returns the kebab cased string.
13 * _.kebabCase('Foo Bar');
16 * _.kebabCase('fooBar');
19 * _.kebabCase('__foo_bar__');
22 var kebabCase = createCompounder(function(result, word, index) {
23 return result + (index ? '-' : '') + word.toLowerCase();
26 module.exports = kebabCase;