mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
5 lines
149 B
TypeScript
5 lines
149 B
TypeScript
const isPrimitive = (value: unknown) =>
|
|
(typeof value !== 'object' && typeof value !== 'function') || value === null;
|
|
|
|
export default isPrimitive;
|