source:
frontend/node_modules/tailwindcss/src/util/isPlainObject.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 262 bytes | |
| Line | |
|---|---|
| 1 | export default function isPlainObject(value) { |
| 2 | if (Object.prototype.toString.call(value) !== '[object Object]') { |
| 3 | return false |
| 4 | } |
| 5 | |
| 6 | const prototype = Object.getPrototypeOf(value) |
| 7 | return prototype === null || Object.getPrototypeOf(prototype) === null |
| 8 | } |
Note:
See TracBrowser
for help on using the repository browser.
