Subtheme of barrio
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.
 
 
 
 

28 lines
492 B

var Immutable = require("immutable");
var defaults = Immutable.fromJS({
port: 3001
});
/**
* @param {Object} obj
* @returns {Map}
*/
module.exports.merge = function (obj) {
return defaults.mergeDeep(Immutable.fromJS(obj));
};
/**
* @param {Immutable.Map} obj
* @returns {*}
*/
//function transformOptions(obj) {
//
// var out;
//
// Object.keys(transforms).forEach(function (key) {
// out = obj.set(key, transforms[key](obj));
// });
//
// return out;
//}