Skip to main content

Arguments

any
required
Value whose metatable is inspected.
string
required
Metafield name to check.

Returns

boolean
true when the raw metafield exists and is non-nil; otherwise false.

Example

Check whether a value has a non-nil raw metafield.