array-expansion

array

Usage no npm install needed!

<script type="module">
  import arrayExpansion from 'https://cdn.skypack.dev/array-expansion';
</script>

README

This is a expansion of Array

Badge

996.icu

License

LICENSE

Installation

Node.js

npm install array-enpansion -S

import "array-enpansion"

API

max

var arr = [1,2,3,4,34,54]
arr.max()
// 54

min

var arr = [1,2,3,4,34,54]
arr.min()
// 1

unique

let arr = [1,1,2,2,"2",undefined,undefined]
arr.unique()
// [1,2,"2",undefined]