refactor: extract helper function from Slider
refactor: extract helper function from Slider

andresmm07/slider,miskreant/rc-slider,react-component/slider,gbmdigital/slider,react-component/slider,miskreant/rc-slider