getData<T>(key: string, def?: T): T | null
Get data from local storage, if not present can set to a default value.
param
key- The key to get data from.
param
def- The default value to set if not found.
returns
The data or null if not found.
since
v2000.0