If both a and b are undefined, return undefined. If exactly one of the two is undefined, return the other. If both are not undefined, return f(a, b).
a
b
undefined
f(a, b)
If both
a
andb
areundefined
, returnundefined
. If exactly one of the two isundefined
, return the other. If both are notundefined
, returnf(a, b)
.