code: function stringifyVal(val) {
    return JSON.stringify(
      val,
      (key, val) => {
        if (typeof val === 'function') {
          if (val.name) {
            return `[Function: ${val.name}]: ${val.toString()}`
          } else {
            return `[Function]: ${val.toString()}`
          }
        }
        return val
      },
      2
    )
  }
docs: Used to stringify yielded values. Output includes functions