code: function newInstance(extend) {
    return (initialValues = {}) => {
      const model = {};
      const publicAPI = {};
      extend(publicAPI, model, initialValues);
      return Object.freeze(publicAPI);
    };
  }
docs: ---------------------------------------------------------------------------- newInstance ----------------------------------------------------------------------------