1.1.1 • Published 4 years ago

@hugoalh/more-array v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

[NodeJS] More Array

A NodeJS library/module to provide more ways to handle array.

📜 Description

🌟 Feature

  • Provide missed method(s) to handle array.
  • Native support for CommonJS and ECMAScript.

📄 Documentation

For the official documentation, please visit GitHub Repository Wiki.

Getting Started (Excerpt)

NodeJS (>= v10) & NPM (>= v6):

> npm install @hugoalh/more-array

API (Excerpt)

  • concatenate(...items)
  • flatten(item, maximumDepth?)
  • removeDuplicate(item)
  • reverse(item)
  • toObject(item)

Example (Excerpt)

const moreArray = require("@hugoalh/more-array");

let array1 = ["one", "two", "three"];
let array2 = ["one", "two", "three"];
console.log(array1);// ["one", "two", "three"]
console.log(Array.reverse(array1));// ["three", "two", "one"]
console.log(array1);// ["three", "two", "one"]
console.log(array2);// ["one", "two", "three"]
console.log(moreArray.reverse(array2));// ["three", "two", "one"]
console.log(array2);// ["one", "two", "three"]
let array3 = moreArray.concatenate(array1, array2);
console.log(array3);// ["three", "two", "one", "one", "two", "three"]
console.log(moreArray.removeDuplicate(array3));// ["three", "two", "one"]
1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago