Safely extracts a string property from an unknown object.
Returns undefined if the value is not an object or the property is not a string.
undefined
The value to extract from.
The property name to extract.
The string value or undefined.
Safely extracts a string property from an unknown object.
Returns
undefinedif the value is not an object or the property is not a string.