mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 06:18:30 +08:00
4 lines
147 B
TypeScript
4 lines
147 B
TypeScript
|
const isPrimitive = (value: unknown) => (typeof value !== 'object' && typeof value !== 'function') || value === null;
|
||
|
|
||
|
export default isPrimitive;
|