Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bemoje/args-to-array

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bemoje/args-to-array

Takes an arguments-object and returns its values in an array.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@bemoje/args-to-array

Takes an arguments-object and returns its values in an array.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/args-to-array
npm install --save @bemoje/args-to-array
npm install --save-dev @bemoje/args-to-array

Usage

import argsToArray from '@bemoje/args-to-array'

argsToArray(1)
//=> [1]

argsToArray(1, 's')
//=> [1, 's']

function argue() {
	return argsToArray(arguments)
}

argue(1, 2, 3)
//=> [1, 2, 3]

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

argsToArray

Takes an arguments-object and returns its values in an array.

Parameters
  • args arguments the arguments-object
Returns

Array

Keywords

FAQs

Package last updated on 30 Apr 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc