Questionnaire-of-the-Facebo.../node_modules/lowercase-keys/index.js

12 lines
208 B
JavaScript
Raw Normal View History

2021-03-11 01:43:28 +00:00
'use strict';
module.exports = function (obj) {
var ret = {};
var keys = Object.keys(Object(obj));
for (var i = 0; i < keys.length; i++) {
ret[keys[i].toLowerCase()] = obj[keys[i]];
}
return ret;
};