crud.js
function clean(action, result, req, res, cb) {
		// call the clean method in our options if it exists
		// or we will just assume it is always clean
		if (options.clean) {
			return options.clean.apply(this, arguments);
		}
		return cb && cb();
	}
function clean(action, result, req, res, cb) {
		// call the clean method in our options if it exists
		// or we will just assume it is always clean
		if (options.clean) {
			return options.clean.apply(this, arguments);
		}
		return cb && cb();
	}
function clean ( action , result , req , res , cb ) { // call the clean method in our options if it exists // or we will just assume it is always clean if ( options . clean ) { return options . clean . apply ( this , arguments ) ; } return cb && cb ( ) ; }
calls a method called 'clean' in our options that will
perform any cleaning on the object being acted upon.
If we're doing a create, then it gets cleaned before going into the DB
If we're doing an update, then it gets cleaned before the response
is sent

@author Tim Golen 2015-03-01
@access private

@param  {string} action the CRUD actions being done
@param  {object} result that needs to be cleaned
@param  {object} req an Express or Restify Request object
@param  {object} res an Express or Restify Response object
@param  {Function} cb
will pass a server error as the first argument if necessary

@return {void}
calls a method called clean in our options that will perform any cleaning on the object being acted upon . If we re doing a create then it gets cleaned before going into the DB If we re doing an update then it gets cleaned before the response is sent