SyntaxFix
Write A Post
Hire A Developer
Questions
benefit.indexOf(map4)
It either returns an index or -1 if the items is not found.
I strongly recommend wrapping the map in some object and use generics if possible.