5 lines
136 B
TypeScript
Raw Normal View History

2024-11-05 10:14:41 +08:00
export function isObject(value: any) {
const type = typeof value
return value != null && (type == 'object' || type == 'function')
}