Skip to content
Advertisement

Try to find an element in the list based on a part of the string

I have a list = [‘Assassin Bow’, ‘Bone Bow’, ‘Citadel Bow’] and I have a string = ‘Bone Bow of Fire’

How can I get output ‘Bone Bow’ as the result ? Just started codding, thx for understanding.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement