Retrieves the number of entries within the module's local storage.
Parameters
Optionaltype: string = STORAGE_TYPE.Local
The storage to act
upon.
Returns Promise<number>
The number in storage. A rejected promise
represents an API violation.
Example
// To get the number of elements in storage // Assumes no errors with the CResult. // Defaults to STORAGE_TYPE.Local letlength = awaitstorage_length()); // To specify type letlength = awaitstorage_length(type: STORAGE_TYPE.Session));
Retrieves the number of entries within the module's local storage.