demos/epcp/browser-webworkers-demo/src/index.js
/** given an object, return some JSON that describes its structure */
given an object, return some JSON that describes its structure
given an object return some JSON that describes its structure
function objectSchema(obj) {
  const props = Object.entries(obj).reduce(
    (reduced, [key, val]) => Object.assign(reduced, { [key]: typeof val }),
    {}
  );
  return props;
}
function objectSchema ( obj ) { const props = Object . entries ( obj ) . reduce ( ( reduced , [ key , val ] ) => Object . assign ( reduced , { [ key ] : typeof val } ) , { } ) ; return props ; }
given an object, return some JSON that describes its structure
given an object return some JSON that describes its structure