1 var createCompounder = require('./_createCompounder');
5 * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
11 * @param {string} [string=''] The string to convert.
12 * @returns {string} Returns the kebab cased string.
15 * _.kebabCase('Foo Bar');
18 * _.kebabCase('fooBar');
21 * _.kebabCase('__FOO_BAR__');
24 var kebabCase = createCompounder(function(result, word, index) {
25 return result + (index ? '-' : '') + word.toLowerCase();
28 module.exports = kebabCase;