In Excel Online, we can select a range of the cells, right-click on it, and delete the comments that are located in this area.
Is it possible to reproduce the same behavior using excel js API?
If we apply context.workbook.comments.getItemByCell to a cell that has no comments, an error occurs. If we try to add a comment to a cell that already has a comment, an error occurs too.
How can we find out if there is a comment in a cell using excel js API?
Do you plan to add the getItemByCellOrNullObject method for handling comments or similar methods to help avoid these inconveniences with errors?