What do you call a function that returns the same output as the input?

It seems that I remember that there is a special name for the function whose output is always identical to its input, for example:

var whatsMyName = function (a) { return a; }; 

Does anyone know if such a function is called, which in practice is pretty pointless?

+6
source share
1 answer

Source: https://habr.com/ru/post/898607/


All Articles