import assign from 'object-assign';

export default function createConstants(constants, prefix) {
	return constants.reduce((accumulatedConstants, constantName) => {
		return assign(accumulatedConstants, {
			[constantName]: prefix + constantName
		});
	}, {});
}


import _ from 'lodash';

export default function createConstants(constants, prefix) {
	return constants.reduce((accumulatedConstants, constantName) => {
		return _.assign(accumulatedConstants, {
			[constantName]: prefix + constantName
		});
	}, {});
}

remove dependency on object-assign