UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

15 lines 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.get = get; const common_1 = require("./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} */ function get(key) { const pKey = (0, common_1.prefixKey)(key); const value = common_1.storage === null || common_1.storage === void 0 ? void 0 : common_1.storage.getItem(pKey); return value || ""; } //# sourceMappingURL=get.js.map