1.0.0 • Published 1 year ago

icoding-test v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

包描述

这个包提供了max和min两个方法

  • max方法用来实现求两个数中的最大值
  • min方法用来实现求两个数中的最小值

安装

使用npm来安装包

npm i icoding-max

API方法说明

  • max方法用来实现求两个数中的最大值
  • min方法用来实现求两个数中的最小值
const {max,min}=require("icoding-max");
console.log(max(1,5)); //返回结果为5
console.log(min(1,5)); //返回结果为1
1.0.0

1 year ago