Sha256: 28b6d22b23bdae4832c0eb6b95bc53f2c47b352190a60498f16ece30df42bc94
Contents?: true
Size: 375 Bytes
Versions: 78
Compression:
Stored size: 375 Bytes
Contents
export class LocalStorageService { prefix = 'avo' prefixedKey(key) { return `${this.prefix}.${key}` } get(key) { return window.localStorage.getItem(this.prefixedKey(key)) } set(key, value) { return window.localStorage.setItem(this.prefixedKey(key), value) } remove(key) { return window.localStorage.removeItem(this.prefixedKey(key)) } }
Version data entries
78 entries across 78 versions & 1 rubygems