Skip to content

Instantly share code, notes, and snippets.

View RawPlutonium's full-sized avatar
:electron:
Wake up Neo...

Leonard Githigi RawPlutonium

:electron:
Wake up Neo...
  • Quanta Technologies Inc.
  • Outer Ring Rd, Kenya
View GitHub Profile
//Your first condition in loop should check if name is equal. If it satisfy Then you should check if the property exists If it exists return the value else return no such property.If No such name is found then it will come out of loop and you can return no such contact.
var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",