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

easy-array-tools

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-array-tools

a package about easy to use Array!

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

easy-array-tools

环境依赖

node 5.x ~

npm 4.x ~

部署步骤

npm install easy-array-tools

import easyArrayTools from 'easy-array-tools'

easyArrayTools.arrMax([192,2,432,2,43,21,23]) // --> 432

目录结构描述

├── Readme.md // help
├── index // 应用
├── src
│ └── easy-array.js // core code
├── node_modules
├── package.json
├── lib
│ └── easy-array.js // babel转译成es5的代码
└── gitignore

V1.0.2 版本内容更新

  • 数组最大值 arrMax(arr)
  • 数组最小值 arrMin(arr)
  • 数组拆分 chunkArr(arr,size)
  • 数组中target出现次数 countOccurrences(arr, target)
  • 数组平铺 arrayDeepFlatten(arr)
  • 数组去重 removeTheSame(arr)
  • 数组去重 distinctValuesOfArray(arr)
  • 两个数组中不同的值 differentValue(arr1, arr2)
  • 筛选数组中的元素(移除数组中的某些特定元素) filterElement(arr, target)

Keywords

array

FAQs

Package last updated on 19 Feb 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