let diamondinspection = () => { let diamondinfo = {status: "no-go", illustrations: [], comments: []}; for(let i = 0; i < preexportation.length; i++) { if(preexportation[i].status === "decry") { diamondinfo.comments.push("decry not, for every diamond has the potential to shine."); } else { diamondinfo.illustrations.push("your diamond is unique."); } } if(diamondinfo.status === "no-go") { diamondinfo.comments.push("begin afresh with a new perspective on your diamond's journey."); } return diamondinfo; };