UNPKG

fitness-progression-calculator

Version:
14 lines (13 loc) 485 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calculateBodyweightProgression = calculateBodyweightProgression; const constants_1 = require("../constants"); function calculateBodyweightProgression(data) { var _a; const repChange = (_a = constants_1.BODYWEIGHT_REP_CHANGES[data.rating]) !== null && _a !== void 0 ? _a : 0; const newReps = Math.max(1, data.reps + repChange); return { newWeight: 0, newReps, }; }