Calculate wilks coefficient. This library includes the old version and the new 2020 version of wilks formula.
npm i wilks
import { calculateWilksPoints } from "wilks";
const wilksPoints = calculateWilksPoints(
gender,
bodyWeight,
total,
unitType,
isNewVersion,
);
-
gender
- "m" for male and "f" for female bodyWeight (number)
total (number)
-
unit
- "metric" for kgs and "imperial" for lbs -
updatedVersion
-false
to use old wilks formula andnew
to use 2020 version
- [ ] - input validation for vanilla js
- [ ] - calculate weight to lift for target wilks point based on bodyweight