Skip to content

type :string

function Type.type(object: any): string

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

Default syntax

local objectType = ClassPP.Type.type(object)

Parameters

object: object The object.

Returns