Status: ✔️ Ported
Source: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-get-type
Version: v27.4.7
- Lua makes no distinction between tables, objects, and arrays. We always return
table
at this level and consumers are expected to check at a higher level. - Lua makes no distinction between
null
andundefined
so we only returnnil
. - Lua lacks the following primitives:
bigint
,symbol
. - Lua lacks the following built-in types:
RegExp
,Map
,Set
,Date
. -
JestGetType
deviates and exposes anisRobloxBuiltin
method to check whether a value is a Roblox builtin type
Types supported:
- Lua Primitives -
nil
,table
,number
,string
,function
,boolean
,userdata
,thread
-
Luau Polyfill types -
symbol
,regexp
,error
,set
- Roblox datatypes -
DateTime
, and otherbuiltin
types
Package | Version | Status | Notes |
---|