TypeScript Objek Generik Bukan Array

type NotArray<T> = T extends Array<unknown> ? never : T;

function f<T>(arg: NotArray<T>) {

}
Famous Flatworm