main.js
function filterConfig(config) {
	return Object
		.entries(config)
		.filter(
			([key, value]) =>
				typeof value === typeof DEFAULT_CONFIG[key]
		)
		.reduce(
			(obj, [key, value]) => {
				obj[key] = value
				return obj
			}, {}
		)
}
function filterConfig(config) {
	return Object
		.entries(config)
		.filter(
			([key, value]) =>
				typeof value === typeof DEFAULT_CONFIG[key]
		)
		.reduce(
			(obj, [key, value]) => {
				obj[key] = value
				return obj
			}, {}
		)
}
function filterConfig ( config ) { return Object . entries ( config ) . filter ( ( [ key , value ] ) => typeof value === typeof DEFAULT_CONFIG [ key ] ) . reduce ( ( obj , [ key , value ] ) => { obj [ key ] = value return obj } , { } ) }
Allows to filter config object
@param  {Object} config
@return {Object}
Allows to filter config object