code: function objectSchema(obj) {
    const props = Object.entries(obj).reduce(
      (reduced, [key, val]) => Object.assign(reduced, { [key]: typeof val }),
      {}
    );
    return props;
  }
docs: given an object, return some JSON that describes its structure