MCPcopy Index your code
hub / github.com/Shopify/go-lua / IsNumber

Method IsNumber

lua.go:683–686  ·  view source on GitHub ↗

IsNumber verifies that the value at index is a number. http://www.lua.org/manual/5.2/manual.html#lua_isnumber

(index int)

Source from the content-addressed store, hash-verified

681//
682// http://www.lua.org/manual/5.2/manual.html#lua_isnumber
683func (l *State) IsNumber(index int) bool {
684 _, ok := l.toNumber(l.indexToValue(index))
685 return ok
686}
687
688// IsString verifies that the value at index is a string, or a number (which
689// is always convertible to a string).

Callers

nothing calls this directly

Calls 2

toNumberMethod · 0.95
indexToValueMethod · 0.95

Tested by

no test coverage detected