code: public function unique()
      {
          $items = [];
  
          foreach ($this->items as $item) {
              if (array_search($item, $items, true) === false) {
                  $items[] = $item;
              }
          }
  
          return $this->createFrom($items);
      }
docs: Returns a bag with duplicate values removed.
  
  @return static