Convert rads to degrees and return absolute value for 360

How do I convert rads to degrees and return absolute value for 360 degrees. That is, once it gets past 180 it continues to 359, then to 0.

The following returns positive degrees, but only in the 180 range.

console.log(Math.abs(rads * (180/Math.PI)));

The purpose for this is that I want to return numbers in a compass up to 360 degrees, and not show negative numbers.