src/helpers.js
function serializeError(err) {
  var o = {};

  Object.getOwnPropertyNames(err).forEach(function (k) {
    o[k] = err[k];
  });

  return _.omit(o, ['stack', 'type', 'arguments']);
}
function serializeError(err) {
  var o = {};

  Object.getOwnPropertyNames(err).forEach(function (k) {
    o[k] = err[k];
  });

  return _.omit(o, ['stack', 'type', 'arguments']);
}
function serializeError ( err ) { var o = { } ; Object . getOwnPropertyNames ( err ) . forEach ( function ( k ) { o [ k ] = err [ k ] ; } ) ; return _ . omit ( o , [ 'stack' , 'type' , 'arguments' ] ) ; }
Serialize a JavaScript error
Serialize a JavaScript error