1.0.2 • Published 3 years ago

lucenearr v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

介绍

这是一个函数包

install

npm i lucenearr

Api

let functionlibrary = require("lucenearr")

console.log(lucenearr.reverse([1,2,3,4,5]))5,4,3,2,1(数组反向)
console.log(lucenearr.sort([5,9,6,3,5,2]))2,3,5,5,6,9(数组从小到大)
console.log(lucenearr.sort1([10,18,19,23]))23,19,18,10(数组由大到小)
console.log(lucenearr.delRepeat([1,1,2,2,3,3]))1,2,3(数组去重)
console.log(lucenearr.aWeek([1]))星期一(星期)
console.log(lucenearr.seekArr([1],2))false(数组中指定一个元素,存在返回true)
console.log(lucenearr.seekArr1([1,2,3,4,4,4,4],4))ture,4(返回重复的个数)
console.log(lucenearr.EvenAverage([13,5,7,9,12,2,4]))18(偶数平均和)
console.log(lucenearr.getRndInteger(1,10))(随机数)
console.log(lucenearr.getCountName(['罗xx','郑xx','陈x','李x'],2))(带有两个字名字返回一个数组里)
console.log(lucenearr.randomColor())#9717ae(随机颜色)true
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago