1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/camelcase-keys/index.js

13 lines
328 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
'use strict';
var mapObj = require('map-obj');
var camelCase = require('camelcase');
module.exports = function (input, options) {
options = options || {};
var exclude = options.exclude || [];
return mapObj(input, function (key, val) {
key = exclude.indexOf(key) === -1 ? camelCase(key) : key;
return [key, val];
});
};