Files
zkldi_Tachi/bot/src/utils/predicates.ts
T

7 lines
195 B
TypeScript

/**
* Determines whether an input is a record or not.
*/
export function IsRecord<T = string>(v: unknown): v is Record<string, T> {
return !!v && typeof v === "object" && !Array.isArray(v);
}