Source: sumObject.js

/** @module */
/**
 * Sum all values of an object and return the result
 * @param {Object} obj
 */
export default function sumObject(obj) {
	return Object.values(obj).reduce((a, c) => a + c, 0);
}