promises.Readline.prototype.rollback - Node documentation
method promises.Readline.prototype.rollback

Usage in Deno

import { promises } from "node:readline";
Readline.prototype.rollback(): this

The rl.rollback methods clears the internal list of pending actions without sending it to the associated stream.

Return Type

this

this