Files
30-seconds-of-code/node_modules/remark-stringify/lib/macro/all.js
2019-08-20 15:52:05 +02:00

19 lines
335 B
JavaScript

'use strict';
module.exports = all;
/* Visit all children of `parent`. */
function all(parent) {
var self = this;
var children = parent.children;
var length = children.length;
var results = [];
var index = -1;
while (++index < length) {
results[index] = self.visit(children[index], parent);
}
return results;
}