diff options
Diffstat (limited to 'node_modules/tailwindcss/src/util/isPlainObject.js')
| -rw-r--r-- | node_modules/tailwindcss/src/util/isPlainObject.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/tailwindcss/src/util/isPlainObject.js b/node_modules/tailwindcss/src/util/isPlainObject.js new file mode 100644 index 0000000..6bd031a --- /dev/null +++ b/node_modules/tailwindcss/src/util/isPlainObject.js @@ -0,0 +1,8 @@ +export default function isPlainObject(value) { + if (Object.prototype.toString.call(value) !== '[object Object]') { + return false + } + + const prototype = Object.getPrototypeOf(value) + return prototype === null || Object.getPrototypeOf(prototype) === null +} |