mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 18:08:15 +03:00
7 lines
195 B
TypeScript
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);
|
|
}
|