shouldStopTraversal = async (entry) => {
      count++
      if (!entry) {
        return false
      }
      if (count >= amountToIterate && amountToIterate !== -1) {
        return true
      }
      if (end && Entry.isEqual(entry, end)) {
        return true
      }
      return false
    }
Async iterator over the log entries

@param {Object} options
@param {amount} options.amount Number of entried to return. Default: return all entries.
@param {string} options.gt Beginning hash of the iterator, non-inclusive
@param {string} options.gte Beginning hash of the iterator, inclusive
@param {string} options.lt Ending hash of the iterator, non-inclusive
@param {string} options.lte Ending hash of the iterator, inclusive
@return {Symbol.asyncIterator} Iterator object of log entries

@examples

(async () => {
  log = await Log(testIdentity, { logId: 'X' })

  for (let i = 0; i <= 100; i++) {
    await log.append('entry' + i)
  }

  let it = log.iterator({
    lte: 'zdpuApFd5XAPkCTmSx7qWQmQzvtdJPtx2K5p9to6ytCS79bfk',
    amount: 10
  })

  for await (let entry of it) {
    console.log(entry.payload) // 'entry100', 'entry99', ..., 'entry91'
  }
})()

@memberof module:Log~Log
@instance