source:
node_modules/es-toolkit/dist/predicate/isPrimitive.mjs@
ba17441
| Last change on this file since ba17441 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 145 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | function isPrimitive(value) { |
| 2 | return value == null || (typeof value !== 'object' && typeof value !== 'function'); | |
| 3 | } | |
| 4 | ||
| 5 | export { isPrimitive }; |
Note:
See TracBrowser
for help on using the repository browser.
