then

This function allows to add a function in the chaining.
The function added takes the last result(s) as first parameter.
Its returns is chained if defined (may be a promise) (see chaining).

Example