there is a sample data:
[
  {
    id: 1,
    stockCount: 12,
    category: "car",
  },
  {
    id: 2,
    stockCount: 12,
    category: "car",
  },
  {
    id: 3,
    stockCount: 12,
    category: "car",
  },
  {
    id: 4,
    stockCount: 12,
    category: "plane",
  },
  {
    id: 5,
    stockCount: 12,
    category: "plane",
  },
  {
    id: 6,
    stockCount: 12,
    category: "plane",
  },
  {
    id: 7,
    stockCount: 12,
    category: "plane",
  },
  {
    id: 8,
    stockCount: 12,
    category: "ship",
  },
  {
    id: 9,
    stockCount: 12,
    category: "ship",
  },
  {
    id: 10,
    stockCount: 12,
    category: "ship",
  },
  {
    id: 11,
    stockCount: 12,
    category: "ship",
  },
];
what I want is to get the categories here. when I do this with the .map() function it returns all the categories one by one. but what I want is just to get it in "car", "plane", "ship" format. I don't want copies. how do i know this?
here my loop code :
{DummyProducts.map((item, index) => (
        <Link to="/" className={Style.NavBottomLink}>
          {item.category}
        </Link>
      ))}
 
     
    