README
varags
turn an arguments
object into an array
install
npm install varags
use
var varargs = require('varargs');
function myfunction() {
var args = varargs(arguments);
console.log(args); // ['abc', 123]
}
myfunction('abc', 123);
turn arguments into an array
<script type="module">
import varargs from 'https://cdn.skypack.dev/varargs';
</script>
turn an arguments
object into an array
npm install varags
var varargs = require('varargs');
function myfunction() {
var args = varargs(arguments);
console.log(args); // ['abc', 123]
}
myfunction('abc', 123);