1const keysToCamel = function (o) {
2 if (isObject(o)) {
3 const n = {};
4
5 Object.keys(o)
6 .forEach((k) => {
7 n[toCamel(k)] = keysToCamel(o[k]);
8 });
9
10 return n;
11 } else if (isArray(o)) {
12 return o.map((i) => {
13 return keysToCamel(i);
14 });
15 }
16
17 return o;
18};