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

Usage

import { Readline } from "node:readline/promises";

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

Return Type

this

this