lib/sequelize-slugify.js
function (slug) {
        var query = { where: {} };
        query.where[slugColumn] = slug;

        return Model.findOne(query).then(function (model) {
            return model === null;
        });
    }
function (slug) {
        var query = { where: {} };
        query.where[slugColumn] = slug;

        return Model.findOne(query).then(function (model) {
            return model === null;
        });
    }
function ( slug ) { var query = { where : { } } ; query . where [ slugColumn ] = slug ; return Model . findOne ( query ) . then ( function ( model ) { return model === null ; } ) ; }
Checks whether or not the slug is already in use.

@param slug The slug to check for uniqueness.
@return True if the slug is unique, false otherwise.
Checks whether or not the slug is already in use .