Internal
Get the error stack from a value. If the value is an error, the error's stack is returned. Otherwise, it returns undefined.
undefined
The error stack, or undefined if the value is not an error.
Optional
The value to get an error stack from.
Get the error stack from a value. If the value is an error, the error's stack is returned. Otherwise, it returns
undefined
.Returns
The error stack, or
undefined
if the value is not an error.