Skip to content
Advertisement

find all strings from list which matches with given few alphabets

I am building a simple function to search through some data from the list. I am trying to search string from list matches some characters from start of string.

Like :-

JavaScript

and if user calls the function with argument "bi" then I am trying to get strings which matched that string "bi" like :-

JavaScript

But it is not working, I have tried many methods like :-

JavaScript

But it returned empty

then I tried

JavaScript

It also showed me empty list

Any help would be much Appreciated. Thank You in Advance

Advertisement

Answer

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