function mkAssignment(fvPairs) {
  var _result = '';
  if(Object.keys(fvPairs).length > 0) {
    _result = _.map(fvPairs, function(value, key) {
      return key + '=' + (typeof value === 'number' ? value : '\'' + value + '\'');
    }).join(', ');
  }
  return _result;
}
/**
 * Form a valid SQL assignment clause given a set of field/value pairs. This can
 * be used to construct WHERE clauses as well as for UPDATE statements.
 *
 * @param {Object} fvPairs - field/value pairs to build an assignment
 * @returns {String} string representation of SQL assignment clause
 */
Form a valid SQL assignment clause given a set of field/value pairs. This can
be used to construct WHERE clauses as well as for UPDATE statements.

@param {Object} fvPairs - field/value pairs to build an assignment
@returns {String} string representation of SQL assignment clause
Form a valid SQL assignment clause given a set of field / value pairs . This can be used to construct WHERE clauses as well as for UPDATE statements . @param { Object } fvPairs - field / value pairs to build an assignment @returns { String } string representation of SQL assignment clause
function mkAssignment(fvPairs) {
  var _result = '';
  if(Object.keys(fvPairs).length > 0) {
    _result = _.map(fvPairs, function(value, key) {
      return key + '=' + (typeof value === 'number' ? value : '\'' + value + '\'');
    }).join(', ');
  }
  return _result;
}
function mkAssignment ( fvPairs ) { var _result = '' ; if ( Object . keys ( fvPairs ) . length > 0 ) { _result = _ . map ( fvPairs , function ( value , key ) { return key + '=' + ( typeof value === 'number' ? value : '\'' + value + '\'' ) ; } ) . join ( ', ' ) ; } return _result ; }
Form a valid SQL assignment clause given a set of field/value pairs.
Form a valid SQL assignment clause given a set of field / value pairs .