{"version":3,"file":"is-mergeable-object.mjs","names":[],"sources":["../src/is-mergeable-object.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n                       🗲 Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website:                  https://stormsoftware.com\n Repository:               https://github.com/storm-software/stryke\n Documentation:            https://docs.stormsoftware.com/projects/stryke\n Contact:                  https://stormsoftware.com/contact\n\n SPDX-License-Identifier:  Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isNonNullObject } from \"./is-non-null-object\";\nimport { isReactElement } from \"./is-react-element\";\n\nconst isSpecialType = (value: any) => {\n  const stringValue = Object.prototype.toString.call(value);\n\n  return (\n    stringValue === \"[object RegExp]\" ||\n    stringValue === \"[object Date]\" ||\n    isReactElement(value)\n  );\n};\n\nexport const isMergeableObject = (value: any): boolean => {\n  return isNonNullObject(value) && !isSpecialType(value);\n};\n"],"mappings":";;;;AAqBA,MAAM,iBAAiB,UAAe;CACpC,MAAM,cAAc,OAAO,UAAU,SAAS,KAAK,MAAM;AAEzD,QACE,gBAAgB,qBAChB,gBAAgB,mBAChB,eAAe,MAAM;;AAIzB,MAAa,qBAAqB,UAAwB;AACxD,QAAO,gBAAgB,MAAM,IAAI,CAAC,cAAc,MAAM"}