Given an array mart of objects in the prefilled code and categoryOfItem, item as inputs, create a JS promise.

Search Item in a Mart Given an array mart of objects in the prefilled code and categoryOfItem, item as inputs, create a JS promise. resolve with “Item Found” text, if the categoryOfItem matches with the category and the corresponding items list includes the item reject with “Category Not Found” text, if the categoryOfItem does not … Read more