docs: function clearSubObject (object, path, pathIndex) {
    const key = path[pathIndex]
    if (path.length < pathIndex + 2) {
      delete object[key]
      return true
    }
    const subObj = object[key]
    const didClear = clearSubObject(subObj, path, pathIndex + 1)
    if (didClear && keys(subObj).length <= 0) {
      delete object[key]
      return true
    }
    return false
  }