Skip to content

type

const type: (obj: unknown) => string = builtins.type

Defined in: packages/pythonlib/src/index.ts:188

Return the type name of an object as a string.

Returns Python-style type names: ‘int’, ‘float’, ‘str’, ‘bool’, ‘list’, ‘dict’, ‘set’.

Parameters

ParameterTypeDescription
objunknownThe object to check

Returns

string

The type name

See

Python type()