Define the Retail variable, that is currently not defined?
Oh I get it. You are wanting to compare against the category property of each company.
When you filter companies, each one is not a category. They are a company instead.
From that company you can get its category. That would result in the following code:
Before the colon it’s called a key, after the colon it’s a value, and together they are called a property of the object, that you might also see referred to as a key/value pair.
Sir, Thank you for sharing your experience and knowledge.
Please help me to understand this part as we are minimizing and polishing the code here → ({category})
I think this is something specific to JS or coding practice in general rather than filter or arrow function.