code: function undent(code) {
    let lines = code.split("\n");
    let minIndent = Number.MAX_VALUE;
  
    // find min indent
    lines.forEach(line => {
      let startingSpaceMatch = line.match(/^\s*/);
      let indentLength = startingSpaceMatch[0].length;
      if (indentLength < minIndent) {
        minIndent = indentLength;
      }
    });
  
    // remove the indentation from each line
    return lines
      .map(line => {
        return line.substring(minIndent);
      })
      .join("\n");
  }
docs: given code, removes the smallest indent from each line (e.g. nested code becomes less-indented to the least indented line)