wizer 10.0.0

The WebAssembly Pre-Initializer
Documentation
1
2
3
4
5
6
7
8
9
export function lowercaseKeys(object) {
    if (!object) {
        return {};
    }
    return Object.keys(object).reduce((newObj, key) => {
        newObj[key.toLowerCase()] = object[key];
        return newObj;
    }, {});
}