mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-13 09:48:27 +03:00
7 lines
202 B
TypeScript
7 lines
202 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 !== null && typeof v === "object" && !Array.isArray(v);
|
|
}
|