相当于 pry / irb 的 _ ,但在节点中?

Equivalent to pry / irb 's _ , but in node?

我非常熟悉 Ruby REPL、irb 和 pry。在这两种情况下,如果我输入了一些东西而忘记将它保存到一个变量中,我可以通过输入 _

来访问最后输出的东西

例如在irb中,

>> [2,3,4]
=> [2, 3, 4]
>> _
=> [2, 3, 4]
>> 

在撬,

[1] pry(main)> [2,3,4]
=> [2, 3, 4]
[2] pry(main)> _
=> [2, 3, 4]
[3] pry(main)> 

我的问题是,Node 中是否存在类似的东西?

Node docs:

The special variable _ (underscore) contains the result of the last expression.