Tests whether or not a key string is a key of the given object type T.
key
T
The target object to check the key in.
The string to test as a key of the target object.
Tests whether or not a
keystring is a key of the given object typeT.