function isNamedFunction(node, name) {
  return Boolean(node && 'id' in node && node.id && node.id.name === name)
}
@param {Readonly<EstreeFunction>} node
  Node.
@param {string} name
  Name.
@returns {boolean}
  Whether `node` is a named function with `name`.