mirror of
https://github.com/vercel/commerce.git
synced 2025-05-14 21:47:51 +00:00
* Adds better error messages and environment variable fault tolerance * No hidden undefined
4 lines
167 B
TypeScript
4 lines
167 B
TypeScript
export const isObject = (object: unknown): object is Record<string, unknown> => {
|
|
return typeof object === 'object' && object !== null && !Array.isArray(object);
|
|
};
|