How to properly use wixLocation.query

Hello! Does anyone know the syntax I have to follow in order to use the values that wixLocation.query find?

Example:
url: https://domain.com/animals/mammals/elephant?species=african-elephant
using wixLocation.query will return:
{“species”: “african-elephant”}

What should I do so I can achieve this:
let animal = african-elephant (I don’t care about the “species”, I just need the “african-elephant”)

Thanks in advance!