@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
16 lines • 461 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.caseInsensitive = caseInsensitive;
/**
* @private
*/
function caseInsensitive(dictionary) {
return new Proxy(dictionary, {
get: (obj, key) => {
const found = Object.keys(obj)
.find(k => k.toLocaleLowerCase() === key.toLocaleLowerCase());
return found && obj[found];
},
});
}
//# sourceMappingURL=proxies.js.map
;