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?
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?
function myFunction() {
DocumentApp.getActiveDocument().getFootnotes()[1].removeFromParent();