function adjustFit( parts, target ) {
	const diff = target - parts.reduce( ( sum, n ) => sum + n, 0 );
	const partialDiff = diff / parts.length;
	return parts.map( p => p + partialDiff );
}
/**
 * Distribute a difference across ns so that their sum matches the target
 *
 * @param {Array<number>}  parts  Array of numbers to fit
 * @param {number}         target Number that sum should match
 * @return {Array<number>}        Adjusted parts
 */
Distribute a difference across ns so that their sum matches the target
@param {Array}  parts  Array of numbers to fit
@param {number}         target Number that sum should match
@return {Array}        Adjusted parts
Distribute a difference across ns so that their sum matches the target @param { Array } parts Array of numbers to fit @param { number } target Number that sum should match @return { Array } Adjusted parts
function adjustFit( parts, target ) {
	const diff = target - parts.reduce( ( sum, n ) => sum + n, 0 );
	const partialDiff = diff / parts.length;
	return parts.map( p => p + partialDiff );
}
function adjustFit ( parts , target ) { const diff = target - parts . reduce ( ( sum , n ) => sum + n , 0 ) ; const partialDiff = diff / parts . length ; return parts . map ( p => p + partialDiff ) ; }
Distribute a difference across ns so that their sum matches the target
 @param {Array<number>}  parts  Array of numbers to fit
 @param {number}         target Number that sum should match
 @return {Array<number>}        Adjusted parts
Distribute a difference across ns so that their sum matches the target @param { Array<number > } parts Array of numbers to fit @param { number } target Number that sum should match @return { Array<number > } Adjusted parts