Check If Property Exists In Object Typescript