Creates a separator menu item and inserts it in the menu at the given index.
- Safari Desktop 5.1+
- Safari Extensions JS
The index at which the menu item is being inserted.
The unique identifier of the menu item being inserted.
The menu item that was inserted.
If a menu item with the same identifier already exists, it is removed from before inserting the separator.
If the value of
Infinity, a negative number, or a number greater than the number of items in the menu, the separator is appended at the end of the menu.