mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
10 lines
259 B
JavaScript
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;
|