I seem to remember there being a special name for a function whose output is always identical to its input, e.g.:
var whatsMyName = function (a) {
return a;
};
Does anyone know what such a function -- which, in practice, is pretty pointless -- is called?
It's the identity function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With