@19h47/clamp 中文文档教程
@19h47/clamp
@19h47/clamp 是一个小模块,用于将数字限制在上限和下限之间。
import clamp from '@19h47/clamp';
clamp(100, 0, 50); // 50
Test
yarn test
@19h47/clamp
@19h47/clamp is a small module to clamp a number between an upper and lower bound.
import clamp from '@19h47/clamp';
clamp(100, 0, 50); // 50
Test
yarn test
更多
你可能也喜欢
- @01group/form-builder 中文文档教程
- @100mslive/hms-loadtest 中文文档教程
- @1023-ventures/darri-pp-navigation 中文文档教程
- @2fd/graphdoc 中文文档教程
- @__username/decision-tree 中文文档教程
- @a2670392079/data-structure-ts 中文文档教程
- @aabegg/ap-content 中文文档教程
- @aabenoja/phantomjs 中文文档教程
- @aaditya1978/ckeditor5-build-classic 中文文档教程
- @abihf/fragment 中文文档教程