array-easy
TypeScript icon, indicating that this package has built-in type declarations

1.0.12-0 • Public • Published

Description

Powerful lightweight array prototypes

Installation

npm i array-easy

Apply

require('array-easy') 

Functions

sortMax(): numbe[]  
sortMaxLength(): string[];
getNumber(): this;
getString(): this;
sortRandom(): this;
getMin(length: number): number;
getMax(length: number): number;
getRandom(length: number): number;
count(element): number;
countAlt(element): number;
indexesOf(element): number[];
indexesOfAlt(element): number[];
getTrue(): this;
falseCount(): number[];
falsyIndexes(): number[];
typeCount(type: string): number[];
last()
convertSet(): this;
dublicates(): this;
dublicatesCount(): object[];
sum(): number;
bindSum(array: Array): number[];
merge(array: Array): this;

Package Sidebar

Install

npm i array-easy

Weekly Downloads

1

Version

1.0.12-0

License

ISC

Unpacked Size

3.54 kB

Total Files

4

Last publish

Collaborators

  • fiberdevlead