Skip to content

IDENTITY

Subhajit Sahu edited this page Jul 29, 2022 · 2 revisions

Return the same (first) value.

Similar: ARGUMENTS, NOOP, IDENTITY, COMPARE.


function IDENTITY(v)
// v: a value

const xfunction = require('extra-function');


xfunction.IDENTITY(1);
// → 1

xfunction.IDENTITY('a');
// → 'a'