function init(options) {
  if (typeof options === 'string') {
    options = {actorId: options}
  } else if (typeof options === 'undefined') {
    options = {}
  } else if (!isObject(options)) {
    throw new TypeError(`Unsupported options for init(): ${options}`)
  }
  return Frontend.init(Object.assign({backend}, options))
}
Automerge.* API
The functions in this file constitute the publicly facing Automerge API which combines
the features of the Frontend (a document interface) and the backend (CRDT operations)