JavaScript program to check if a key exists in an object:

Created with Sketch.