Is there a name that is commonly used for functions that are only called in one other function?
(I'm not asking whether it's a good practice; I believe it can improve readability in some cases.)
Right now I'm commenting them as "local shorthand functions", but I'd like a more standardized name, if available.
Example:
function foo(){
bar(x)
bar(y)
bar(z)
}
function bar(){
... // bar definition
}
bar()
only being used, one to N times, in another single function foo()
.