function escape(string) {
      // Reset `lastIndex` because in IE < 9 `String#replace` does not.
      string = baseToString(string);
      return (string && reHasUnescapedHtml.test(string))
        ? string.replace(reUnescapedHtml, escapeHtmlChar)
        : string;
    }
Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).

@static
@memberOf _
@category String
@param {string} [string=''] The string to convert.
@returns {string} Returns the kebab cased string.
@example

_.kebabCase('Foo Bar');
// => 'foo-bar'

_.kebabCase('fooBar');
// => 'foo-bar'

_.kebabCase('__foo_bar__');
// => 'foo-bar'