PignoreUndefined
Bun

property

repl.ReplOptions.ignoreUndefined

ignoreUndefined?: boolean

If true, specifies that the default writer will not output the return value of a command if it evaluates to undefined.