code: function highlightArray(code = '') {
    if (!code) {
      return [];
    }
    const { lines } = highlight(code);
  
    return (0, _jsx.transformElements)(lines.toArray());
  }
docs: Using the CodeMirror editor highlights a string of text representing JavaScript program code and returns an array of
  plain objects describing React Elements for easy serialization/unserialization.
  
  @memberof module:highlight
  @method highlightArray
  @param {string} [code=""] - any valid ES2015, TypeScript, JSX, Flow code
  @return {Array<string|Object>} an array of plain objects describing React Elements
  @example
  import {highlightArray} from 'webcompiler';
  // or - import {highlightArray} from 'webcompiler/lib/highlight';
  // or - var highlightArray = require('webcompiler').highlightArray;
  // or - var highlightArray = require('webcompiler/lib/highlight').highlightArray;
  
  highlightArray('function myScript(){return 100;}');
  // [{type: 'pre', props: {className: 'CodeMirror-line'}, children: [...]}]