@genexus/web-standard-functions
Version:
GeneXus JavaScript standard functions library for web generators
12 lines • 405 B
JavaScript
import { prefixKey, storage } from "./common";
/**
* Gets the stored value for the given key. If the key does not exist, it returns an empty string.
* @param {string} key
* @return {string}
*/
export function get(key) {
const pKey = prefixKey(key);
const value = storage === null || storage === void 0 ? void 0 : storage.getItem(pKey);
return value || "";
}
//# sourceMappingURL=get.js.map