.quota - macmcmeans/localDataStorage GitHub Wiki
localDataStorage.quota
This property returns the total amount of memory available for storage, in human readable form. For example, the Chrome browser (and most others) will report a quota of 5 MB.
Available storage is not consumption. While 5 MB is the standard browser quota, the actual memory consumed, when full, would total 10 MB due to the manner in which JavaScript stores string data, as JavaScript Strings are โfinite ordered sequences of zero or more 16-bit unsigned integer values.โ
This property is automatically defined when the library is instantiated (which accounts for the small delay when starting up).
EXAMPLE:
โ localData.quota ย --> ย 5 MB
๐ NOTE: This returns the same information as the showquota method, which updates this property.