1.0.1 • Published 2 years ago
monody-array v1.0.1
1.hmarray 介绍
1.1 这是一个很牛逼的包
1.2 技术亮点
- 它没有修改原生的数组,而是在原生的数组中添加额外的新功能
- 也就是说,使用 hmarray 您完全不用担心对您现在的代码产生任何影响。
- 它只是拓展,不是替换。
2.hmarray 官方 api
//导包
const HMArray = require("./index.js");
//创建自定义数组
let arr = new HMArray(20, 55, 60, 80, 99, 100);
console.log(arr.reverse());
console.log(arr.max());
console.log(arr.min());