type
consttype: (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
| Parameter | Type | Description |
|---|---|---|
obj | unknown | The object to check |
Returns
string
The type name