@avidian/extras
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@avidianity/extras

GitHub license

Extra features on native objects

Installation

npm:

npm install @avidian/extras

yarn:

yarn add @avidian/extras

Usage

Arrays

const data = [1, 2, 3];

const randomValue = data.random();

const first = data.first();

const last = data.last();

// Flatten
const data = [1, 2, 3, [4, 5]];

// [1, 2, 3, 4, 5]
const flattened = data.flatten()

Readme

Keywords

none

Package Sidebar

Install

npm i @avidian/extras

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

75 kB

Total Files

27

Last publish

Collaborators

  • avidian