how to see if a object has a key code example Example: typescript check if object has key if ('key' in myObj)