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

0.1.1 • Public • Published

Extarray.js

logo

Build Status npm (tag) Test Coverage Maintainability npm Typescript GitHub license

Highlight

  • Useful features not found in Array

  • Covers existing Array functions

  • Supports Typescript

Install

npm install extarray

Usage

//cjs
const { Extarray } = require('extarray');

//esm or ts
import { Extarray } from 'extarray';

//from constructor
const extarray = new Extarray(0, 1, 2, 3, 4);

//from existing array
const array = [0, 1, 2, 3, 4];
const extarray = Extarray.extend(array);

//shuffle
extarray.shuffle();
console.log(extarray); //<Extarray>[1, 3, 4, 0, 2]

//draw
console.log(extarray.draw()); // 3
console.log(extarray); //<Extarray>[0, 1, 2, 4]

//...more methods

Document

For more information, please see document

Issues

If you find a bug or problem, please open an issue!:bug:

Author

LICENSE

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i extarray

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

530 kB

Total Files

36

Last publish

Collaborators

  • airrnot1106