(type-of val)
  val: any type
  returns a sym
F

Returns the primitive type of its argument as a symbol.

The result is one of the symbols nil, bool, int, flo, sym, char, arr, str, tab, iter, obj, class, fn, coro, rfn or rdata.

nil?