ant-design/components/_util/isPrimitive.ts
thinkasany 5e7f63fb30
Some checks failed
✅ test / test-react-legacy (push) Failing after 53s
✅ test / test-node (push) Failing after 55s
✅ test / test-react-latest-dist (push) Has been skipped
✅ test / test lib/es module (push) Failing after 55s
👁️ Visual Regression Persist Start / test image (push) Failing after 56s
Publish Any Commit / build (push) Failing after 55s
🔀 Sync mirror to Gitee / mirror (push) Has been skipped
✅ test / lint (push) Failing after 55s
✅ test / test-react-latest (push) Failing after 58s
✅ test / test-coverage (push) Has been skipped
✅ test / build (push) Failing after 55s
chore: fix biome error (#54682)
* chore: fix biome error

* fix

* fix again

* revert
2025-08-14 22:52:15 +08:00

4 lines
149 B
TypeScript

const isPrimitive = (value: unknown) =>
(typeof value !== 'object' && typeof value !== 'function') || value === null;
export default isPrimitive;