Basically, the reverse of abs. If I have:
if ($this.find(\'.pdxslide-activeSlide\').index() < slideNum - 1) { slideNum = -slideNum } console.log(slideNu
It will convert negative array to positive or vice versa
function negateOrPositive(arr) { arr.map(res => -res) };