node.js - expressjs middleware next function vs response objects next function -


i noticed undocumented next function on expressjs response object.

is function same next in middleware function(req, res, next) ?

is use discouraged because undocumented?

yes, it same function can seen here in source code.

yes, it's use discouraged because undocumented , unnecessary since each middleware function next passed in 3rd argument.


Comments