JSPM

minor-array-tools

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q8697F
  • License ISC

Package Exports

  • minor-array-tools
  • minor-array-tools/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (minor-array-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

minor-array-tools包

功能:
    返回一组数值的最大值或最小值

方法/函数:

+ getMax()
+ getMin()

使用方法:

  • 安装: npm i minor-array-tools
  • js引入:
const {	getMax,	getMin} = require("./minor-array-tools")
  • 使用:
var arr = [1, 2, 3]
console.log(getMax(...arr)) // 3
console.log(getMin(...arr)) // 1