UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 139 B
export function between(t,a,n=!1){const e=Math.min.apply(Math,[t[0],t[1]]),p=Math.max.apply(Math,[t[0],t[1]]);return n?a>=e&&a<=p:a>e&&a<p}