Files
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

17 lines
274 B
JavaScript

'use strict'
module.exports = root
var all = require('../all')
var wrap = require('../util/wrap')
function root(h, node) {
var children = all(h, node)
if (h.document || wrap.needed(children)) {
children = wrap(children)
}
return h(node, 'root', children)
}