function filterConsecutiveMenuSeparators() {
    return filterConsecutive(it => {
        return it === '-' || it === 'separator' || it?.type?.name === 'MenuDivider';
    });
}
/**
 * @private
 *
 * A function to be passed to `array.filter()`, than excludes consecutive separators
 * for both Blueprint and AgGrid menus.
 */
@private
A function to be passed to `array.filter()`, than excludes consecutive separators
for both Blueprint and AgGrid menus.
@private A function to be passed to ` array . filter () ` than excludes consecutive separators for both Blueprint and AgGrid menus .
function filterConsecutiveMenuSeparators() {
    return filterConsecutive(it => {
        return it === '-' || it === 'separator' || it?.type?.name === 'MenuDivider';
    });
}
function filterConsecutiveMenuSeparators ( ) { return filterConsecutive ( it => { return it === '-' || it === 'separator' || it ?. type ?. name === 'MenuDivider' ; } ) ; }
@private
 A function to be passed to `array.filter()`, than excludes consecutive separators
 for both Blueprint and AgGrid menus.
@private A function to be passed to ` array . filter () ` than excludes consecutive separators for both Blueprint and AgGrid menus .