mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-20 20:38:09 +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;
|