{"version":3,"file":"object_helpers-NnIxVUNv.js","sources":["../../../app/javascript/helpers/object_helpers.js"],"sourcesContent":["import isEqual from \"lodash/isEqual\"\n\nexport default {\n filterByKey(object, keyName) {\n return Object.keys(object)\n .filter((key) => key.includes(keyName))\n .reduce((cur, key) => {\n return Object.assign(cur, {\n [key]: object[key],\n })\n }, {})\n },\n areEqual(obj1, obj2) {\n return isEqual(obj1, obj2)\n },\n}\n"],"names":["objectHelpers","object","keyName","key","cur","obj1","obj2","isEqual"],"mappings":"ibAEA,MAAeA,EAAA,CACb,YAAYC,EAAQC,EAAS,CAC3B,OAAO,OAAO,KAAKD,CAAM,EACtB,OAAQE,GAAQA,EAAI,SAASD,CAAO,CAAC,EACrC,OAAO,CAACE,EAAKD,IACL,OAAO,OAAOC,EAAK,CACxB,CAACD,CAAG,EAAGF,EAAOE,CAAG,CAClB,CAAA,EACA,CAAE,CAAA,CACR,EACD,SAASE,EAAMC,EAAM,CACnB,OAAOC,EAAQF,EAAMC,CAAI,CAC1B,CACH"}