I have an array of objects :
array = [
{
name:'alex',
number:36783712773
},
{
name:'gabe',
number:99938873,
},
and so on like this
]
I know the basic concept of binary search and how it works but most of the examples of the internet deal with an array of numbers so I cannot figure out to search by name and phone through the array of objects.
I can search from the backend but I do not want to make unnecessary http calls for a thing which can easily be dealt with in javascript.
All I want from you guys is either refer me to some tutorial which does what I want to accomplish or if you yourself can help me please do.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment