Skip to content

typeof :string

function Type.typeof(object: any): string

Returns the type of the given object. Behaves the same as the built-in Roblox typeof() function, but with additional support for classes and objects.

Default syntax

local objectType = ClassPP.Type.typeof(object)

Parameters

object: object The object.

Returns