Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created February 7, 2018 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KensoDev/8e3f31d9c850787f743db906809f6f01 to your computer and use it in GitHub Desktop.
Save KensoDev/8e3f31d9c850787f743db906809f6f01 to your computer and use it in GitHub Desktop.
function checkObj(checkProp) {
// We check that the object has a propery
if(myObj.hasOwnProperty(checkProp)) {
return myObj[checkProp];
}
// We did not find anything
return "Not Found";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment