Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 392 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 392 Bytes

gymath

Math helper for gym meatheads.

Example

import { calculatePlates } from 'gymath';

// how many plates to put on each side of the barbell
const plates = calculatePlates(275); 

console.log(plates); // { 45: 2, 25: 1 }

// custom barbell weight
const platesUsing35lbsBar = calculatePlates(135, { barWeight: 35 }); 
console.log(platesUsing35lbsBar ); // { 45: 1, 5: 1 }