dist/index.js
function rounddeg(angle) {
    var result = 360.0 * (angle / 360.0 - Math.floor(angle / 360.0));
    if (result < 0.0) {
        result += 360.0;
    }
    if (result >= 360.0) {
        result -= 360.0;
    }
    return result;
}
function rounddeg(angle) {
    var result = 360.0 * (angle / 360.0 - Math.floor(angle / 360.0));
    if (result < 0.0) {
        result += 360.0;
    }
    if (result >= 360.0) {
        result -= 360.0;
    }
    return result;
}
function rounddeg ( angle ) { var result = 360.0 * ( angle / 360.0 - Math . floor ( angle / 360.0 ) ) ; if ( result < 0.0 ) { result += 360.0 ; } if ( result >= 360.0 ) { result -= 360.0 ; } return result ; }
Rounds the degree angle between 0 and 360

@param  {number} angle
@return {number}
Rounds the degree angle between 0 and 360