UNPKG

react-native-atoz-list-assac

Version:

High performance fixed height ListView to be used for a contact list or friends list in your application with some fixes, based on react-native-atoz-list

18 lines (16 loc) 264 B
/** * @param {number} value * @param {number} min * @param {number} max * @return {number} */ function clamp(min, value, max) { if (value < min) { return min; } if (value > max) { return max; } return value; } module.exports = clamp;