index.js
function one(node) {
  var type = node && node.type

  if (type in map) {
    node = map[type](node)
  }

  if ('length' in node) {
    node = all(node)
  }

  if (node.children) {
    node.children = all(node.children)
  }

  return node
}
function one(node) {
  var type = node && node.type

  if (type in map) {
    node = map[type](node)
  }

  if ('length' in node) {
    node = all(node)
  }

  if (node.children) {
    node.children = all(node.children)
  }

  return node
}
/* One node.