Skip to content

IDENTITY

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

Return the same (first) value.

Similar: ARGUMENTS, NOOP, IDENTITY, COMPARE.


function IDENTITY(v)
// v: a value

const {IDENTITY} = require('extra-function');


IDENTITY(1);
// → 1

IDENTITY('a');
// → 'a'
Clone this wiki locally