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.
		
		
		
		
		
			
		
			
				
					
					
						
							12 lines
						
					
					
						
							328 B
						
					
					
				
			
		
		
	
	
							12 lines
						
					
					
						
							328 B
						
					
					
				'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]; | 
						|
	}); | 
						|
};
 | 
						|
 |