Check if a value is a class (instead of a "normal" function), with a type guard, so you can new value() without TS errors.
new value()
z.functionType
z.isUserClass()
Check if a value is a class (instead of a "normal" function), with a type guard, so you can
new value()without TS errors.See
z.functionTypefor the underlying functionz.isUserClass()to exclude internal ones like Promise, Object, Array etc