Skip to content

typeof : string

function Type.typeof(object: any): string

Returns the __type property of an object. This can be used to determine which class an object belongs to.

Default syntax

local objectType = ClassPP.Type.typeof(object)

Parameters

object: object The object.

Returns

string