This function checks if the given angle is between two other angles (inclusive). Angles are in degrees.
import { isAngleBetween } from 'mz-math';
const isBetween1 = isAngleBetween(45, 0, 90); // true
const isBetween2 = isAngleBetween(180, 0, 90); // false