
#############
tryGetService
#############

.. js:function:: wvc.tryGetService

   .. rst-class:: sig-pretty-signature
   
      | tryGetService(**serviceName**\ : :js:data:`ServiceName <wvc.ServiceName>`\ ): (*undefined* | T)
   
   Retrieves a service from the service registry by its name.
   
   **Parameters**
   
   
      **serviceName**\ : :js:data:`ServiceName <wvc.ServiceName>`
   
   
         The name of the service to retrieve.
   
   
   
   **Returns**\ : (*undefined* \| T)
   
   
   
   - The service if found, otherwise undefined.
   
   




