UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

13 lines 348 B
/** * @private */ export 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