rittenhop-ghost/versions/5.94.2/node_modules/remark-stringify/lib/macro/all.js

19 lines
323 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
}