Sin descripción

index.js 328B

123456789101112
  1. 'use strict';
  2. var mapObj = require('map-obj');
  3. var camelCase = require('camelcase');
  4. module.exports = function (input, options) {
  5. options = options || {};
  6. var exclude = options.exclude || [];
  7. return mapObj(input, function (key, val) {
  8. key = exclude.indexOf(key) === -1 ? camelCase(key) : key;
  9. return [key, val];
  10. });
  11. };