Skip to content

IDENTITY

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

Return the same (first) value.

Similar: ARGUMENTS, NOOP, IDENTITY, COMPARE.


function IDENTITY(v)
// v: a value

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


await xasyncfn.IDENTITY(1);
// → 1

await xasyncfn.IDENTITY(Promise.resolve('a'));
// → 'a'
Clone this wiki locally