Debug

debug.getupvalue

Returns a singular upvalue that's derived from a function's upvalue list. Selected via index.

Syntax

debug.getupvalue(function: function | number, index: number): any

Also available as getupvalue