null, array, or the JavaScript typeof of v (the SDK's typeOf).
null
array
typeof
v
typeOf
String typeName(Object? v) { if (v == null) return 'null'; if (v is List) return 'array'; return jsTypeOf(v); }