MCPcopy Create free account
hub / github.com/Shopify/goluago / isArray

Function isArray

util/deep_pull.go:96–107  ·  view source on GitHub ↗
(l *lua.State, idx int)

Source from the content-addressed store, hash-verified

94}
95
96func isArray(l *lua.State, idx int) bool {
97 if !l.IsTable(idx) {
98 return false
99 }
100
101 if !lua.MetaField(l, idx, arrayMarkerField) {
102 return false
103 }
104 defer l.Pop(1)
105
106 return l.ToBoolean(-1)
107}
108
109func pullArrayRec(l *lua.State, idx int) (interface{}, error) {
110 table := make([]interface{}, lua.LengthEx(l, idx))

Callers 1

pullTableRecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected