UNPKG

ts-useful

Version:

Functions for animation, color transitions, ecliptic, bezier, decasteljau, curves, three dimensional curves, smooth scrolling, random range, randomItem, mobius index, vectors, physics vectors, and easing.

8 lines 274 B
/** * * @param compare number * @param range { min: number, max: number } * @returns boolean */ export const Between = (compare, range) => compare >= Math.min(range.min, range.max) && compare <= Math.max(range.min, range.max); //# sourceMappingURL=between.js.map