New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

array_way_bank

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array_way_bank

数组的一些操作的封装,共11个方法 ##下载 ``` npm i shennanya_publish ```

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

shennanya_publish direction for use

数组的一些操作的封装,共11个方法 ##下载 npm i shennanya_publish

##引入及使用 ``` let {methodName} = require("shennanya_publish") methodName("参数")

```

##方法名字加用法说明

dropSortArr

作用:排序降序Array
使用:dropSortArr(传入数组)
注意:数组每一项为数字或字符串格式的数字

litreSortArr

作用:排序升序Array
使用:litreSortArr(传入数组)
注意:数组每一项为数字或字符串格式的数字

deWeightSortArr

作用:去重排序Array
使用:deWeightSortArr(传入数组)

disturbSortArr

作用:打乱Array顺序
使用:disturbSortArr(传入数组)

totalSortArr

作用:求Array总和
使用:totalSortArr(传入数组)
注意:数组每一项为数字或字符串格式的数字

averageSortArr

作用:求Array平均数
使用:averageSortArr(传入数组)
注意:数组每一项为数字或字符串格式的数字

turnObjSortArr

作用:数组转对象
使用:turnObjSortArr(传入数组)

turnArraySortObj

作用:对象转数组
使用:turnArraySortObj(传入对象)
注意:传入对象格式为“{ '0': 1, '1': 2, '2': 5}”

randomNumber

作用:随机整数
使用:randomNumber(min,max)
注意:min是最小值,max是最大值

randomArray

作用:随机数组
使用:randomArray(length,mun)
注意:接收第一个参数为数组的长度,第二个参数为数组的最大值

randomDifferentArray

作用:随机数组,并无重复
使用:randomDifferentArray(length,mun)
注意:length不要大于mun,接收第一个参数为数组的长度,第二个参数为数组的最大值

Keywords

排序

FAQs

Package last updated on 31 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts