docs: function getLayers(elements) {
    if (elements.length === 0) {
      return [[""]];
    }
    const layers = [];
    layers.push(elements);
    while (layers[layers.length - 1].length > 1) {
      layers.push(getNextLayer(layers[layers.length - 1]));
    }
    return layers;
  }