I am having this problem, I am trying to check if an object is inside an array but it is telling me that it is false, when in fact it should be true.
const checkfileExist = (docType, obj) => {
if (docType === "COC") {
let cocArray = JSON.parse(dbData[0].COC);
console.log("COC DATA", cocArray);
console.log("OBJ DATA", obj);
console.log(cocArray.includes(obj));
}
};