@bemoje/args-to-array

1.0.1 • Public • Published

@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

Package Sidebar

Install

npm i @bemoje/args-to-array

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.35 kB

Total Files

5

Last publish

Collaborators

  • bemoje