项目原始demo,不改动
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 

13 行
328 B

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