diff options
Diffstat (limited to 'deps/npm/node_modules/lowercase-keys/index.js')
-rw-r--r-- | deps/npm/node_modules/lowercase-keys/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lowercase-keys/index.js b/deps/npm/node_modules/lowercase-keys/index.js new file mode 100644 index 0000000000..b8d8898365 --- /dev/null +++ b/deps/npm/node_modules/lowercase-keys/index.js @@ -0,0 +1,11 @@ +'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; +}; |