arg-counter
v1.0.0
Published
Check how many arguments that was passed in a function.
Downloads
1
Readme
Argument counter
This method counts how many argumets that were provided in a function
Installation
# Install with npm
npm i -S arg-counter
# Install with yarn
yarn add arg-counter
# Install with Bower
bower install arg-counter
Usage
const ArgCounter = require('arg-counter');
ArgCounter('some', 'arguments', 'provided', 1, 2, 3, 4, 5, 6)
// Will return <number:9> (9)