You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
208 B
JavaScript
12 lines
208 B
JavaScript
5 years ago
|
'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;
|
||
|
};
|