Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

python check if attribute exists in class

if hasattr(obj, 'propertyName'):
	...
 
PREVIOUS NEXT
Tagged: #python #check #attribute #exists #class
ADD COMMENT
Topic
Name
2+7 =