{"version":3,"file":"isPlainObject.cjs","sources":["../../src/types/isPlainObject.ts"],"sourcesContent":["import { isObject } from './isObject';\n\n/**\n * Determines whether the given value is a plain object.\n */\nexport function isPlainObject(value: any): value is object {\n  if (!isObject(value)) {\n    return false;\n  }\n\n  const constructor = value.constructor;\n\n  // If it has a modified constructor\n  if (constructor === undefined) {\n    return true;\n  }\n\n  const prototype = constructor.prototype;\n\n  // If it has a modified prototype\n  if (!isObject(prototype)) {\n    return false;\n  }\n\n  // If the constructor does not have an Object-specific method\n  if (!prototype.hasOwnProperty('isPrototypeOf')) {\n    return false;\n  }\n\n  // Most likely a plain Object\n  return true;\n}\n"],"names":["isObject"],"mappings":";;;;AAEA;;AAEG;AACG,SAAU,aAAa,CAAC,KAAU,EAAA;AACtC,IAAA,IAAI,CAACA,iBAAQ,CAAC,KAAK,CAAC,EAAE;AACpB,QAAA,OAAO,KAAK,CAAC;KACd;AAED,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;;AAGtC,IAAA,IAAI,WAAW,KAAK,SAAS,EAAE;AAC7B,QAAA,OAAO,IAAI,CAAC;KACb;AAED,IAAA,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;;AAGxC,IAAA,IAAI,CAACA,iBAAQ,CAAC,SAAS,CAAC,EAAE;AACxB,QAAA,OAAO,KAAK,CAAC;KACd;;IAGD,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE;AAC9C,QAAA,OAAO,KAAK,CAAC;KACd;;AAGD,IAAA,OAAO,IAAI,CAAC;AACd;;;;"}