documentation/lib/walk.js
2015-10-03 16:57:37 -04:00

10 lines
259 B
JavaScript

function walk(comments, fn) {
return comments.map(function (comment) {
comment.members.instance = walk(comment.members.instance, fn);
comment.members.static = walk(comment.members.static, fn);
return fn(comment);
});
}
module.exports = walk;