UNPKG

overscroll

Version:
5 lines (3 loc) 101 B
export default ( min, max ) => ( number ) => { return Math.min( max, Math.max( min, number )); };