|
|
|
|
|
by geakstr
426 days ago
|
|
Some languages allow to define type alias, name of this type can be self-explanatory: type FullName = string;
function combineName(first: string, last: string): FullName;
Also documentation comment for function is what specifically solves this - describes what function does and returns. |
|