src/slugify.js
function slugify(string) {
    return _.deburr(string).trim().toLowerCase().replace(/ /g, '-').replace(/([^a-zA-Z0-9\._-]+)/, '');
}
function slugify(string) {
    return _.deburr(string).trim().toLowerCase().replace(/ /g, '-').replace(/([^a-zA-Z0-9\._-]+)/, '');
}
function slugify ( string ) { return _ . deburr ( string ) . trim ( ) . toLowerCase ( ) . replace ( / / g , '-' ) . replace ( / ([^a-zA-Z0-9\._-]+) / , '' ) ; }
Generates a url-safe "slug" form of a string.

@static
@memberOf _
@category String
@param {string} string String value.
@return {string} URL-safe form of a string.
@example

_.slugify('A Test');
// => a-test
Generates a url - safe slug form of a string .