Skip to content

ARGUMENTS

Subhajit Sahu edited this page Aug 7, 2022 · 1 revision

Return the arguments passed as a array.

Similar: ARGUMENTS, NOOP, IDENTITY, COMPARE.


function ARGUMENTS(...args)
// args: arguments

const xasyncfn = require('extra-async-function');


await xasyncfn.ARGUMENTS(1, 2);
// → [1, 2]

await xasyncfn.ARGUMENTS('a', Promise.resolve('b'));
// → ['a', 'b']
Clone this wiki locally