easy-menu-name-match

easy-menu-name-match is a compiled Lisp function in `easymenu.el'.

(easy-menu-name-match NAME ITEM)

Return t if NAME is the name of menu item ITEM.
NAME can be either a string, or a symbol.
ITEM should be a keymap binding of the form (KEY . MENU-ITEM).