You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. };