Socket
Socket
Sign inDemoInstall

@avidian/extras

Package Overview
Dependencies
2
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @avidian/extras

Extra features on native objects.


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@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()

FAQs

Last updated on 20 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc