function empty (entity, schema, Empty) {
  if (typeof entity === 'undefined' || entity === null) {
    return
  }
  _.forEach(schema, function(v, k) {
    if (v === Empty) {
      delete entity[k]
    }
  })
}
function empty (entity, schema, Empty) {
  if (typeof entity === 'undefined' || entity === null) {
    return
  }
  _.forEach(schema, function(v, k) {
    if (v === Empty) {
      delete entity[k]
    }
  })
}
function empty ( entity , schema , Empty ) { if ( typeof entity === 'undefined' || entity === null ) { return } _ . forEach ( schema , function ( v , k ) { if ( v === Empty ) { delete entity [ k ] } } ) }
Deletes any properties from the entity which in the schema are marked as Empty.
Deletes any properties from the entity which in the schema are marked as Empty .