how do we use 'typeof'…?
# announcements
e
how do we use 'typeof'…?
j
Are you trying to check if a type is of a specific type? You could use is. if (var name is String) doSomethingNeat()
s
The
typeOf<T>()
returns the KType value of the provided argument of
T
. May come in handy for examination of actual types provided to reified generic parameters.
👍 2