1.0.0 • Published 8 months ago
caller-arguments v1.0.0
caller-arguments
Returns the arguments of the caller.
Usage
const args = require('caller-arguments')
function foo() {
console.log(args())
}
foo('bar') // outputs "[Arguments] { '0': 'bar' }"
If your file is in strict mode or you try to call args()
in an arrow function, it will not work and instead throw an error.
1.0.0
8 months ago