const createElement = (nodeName, attributes, ...args) => {
  let children, i;

  for(i = 0; i < args.length; i++) {
    if (typeof args[i] === 'number') args[i] = String(args[i]);
  }

  children = args.length ? [].concat(...args) : null;

  return { nodeName, attributes, children };
}

export default createElement;

const createElement = (nodeName, attributes, ...args) => {
  let children = args.length ? [].concat(...args) : null;

  return { nodeName, attributes, children };
}

export default createElement;

Revert "Converts the child with the type of number to string"
Revert "Converts the child with the type of number to string"

This reverts commit e13e57750557263eff361f8127893139cf1535ac.
