-1

I have the following code:

function myFunction() {
     DocumentApp.getActiveDocument()
     .getFootnotes()
     .forEach(f => f.removeFromParent());
}

This removes all footnotes. I just want to remove the 2nd of two footnotes. Any thoughts?

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92

1 Answers1

0
function myFunction() {
     DocumentApp.getActiveDocument().getFootnotes()[1].removeFromParent();
Cooper
  • 59,616
  • 6
  • 23
  • 54