You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return "Number" if type(value) in [int, float] else "String" if type(value) == str else "Boolean" if type(value) == bool else "Function" if callable(value) else "Null" if value is None else "Object"
def isNull(value):
return value is None
# not clear how to do this pythonically
def isUndefined(value):
return isNull(value)
def isArray(value):
return (type(value) == list) or (type(value) == tuple)