The most fine-grained and granular version of z.type(), returning the Real-World Type Name of the value passed, not just a general type:
z.type()
Instead of 'function' you get 'Function' | 'GeneratorFunction' | 'AsyncFunction' | 'AsyncGeneratorFunction' | 'ArrowFunction' (always endsWith 'Function')
'function'
Instead of 'realObject' you get 'pojso' or 'userInstance' or 'systemInstance' (endsWith 'Instance')
'realObject'
'pojso'
'userInstance'
'systemInstance'
Instead of 'class' you get 'systemClass' or 'userClass' (always endsWith 'Class')
'class'
'systemClass'
'userClass'
Instead of 'TypedArray, you get 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', 'Int16Array', 'Uint16Array', 'Int32Array' etc.
'TypedArray
'Int8Array'
'Uint8Array'
'Uint8ClampedArray'
'Int16Array'
'Uint16Array'
'Int32Array'
z.type() for the underlying function
any value
TfunctionTypes | TrealObjectTypes | TinstanceTypes | TclassTypes | TrtypeExcludedTypes the type name of the value passed as a string, eg 'number' or 'AsyncFunction' or 'instance' or 'userClass' etc
The most fine-grained and granular version of
z.type()
, returning the Real-World Type Name of the value passed, not just a general type:Instead of
'function'
you get 'Function' | 'GeneratorFunction' | 'AsyncFunction' | 'AsyncGeneratorFunction' | 'ArrowFunction' (always endsWith 'Function')Instead of
'realObject'
you get'pojso'
or'userInstance'
or'systemInstance'
(endsWith 'Instance')Instead of
'class'
you get'systemClass'
or'userClass'
(always endsWith 'Class')Instead of
'TypedArray
, you get'Int8Array'
,'Uint8Array'
,'Uint8ClampedArray'
,'Int16Array'
,'Uint16Array'
,'Int32Array'
etc.See
z.type()
for the underlying function