summaryrefslogtreecommitdiff
path: root/node_modules/tailwindcss/src/util/isPlainObject.js
blob: 6bd031abd90e8b2c998723be01fceef9b35a67f6 (plain) (blame)
1
2
3
4
5
6
7
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
}