Added Brazzers and Jules Jordan as profile sources. Changed profile structure for proper bust-waist-hip properties and improved stability.
This commit is contained in:
23
src/utils/convert.js
Normal file
23
src/utils/convert.js
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
function feetInchesToCm(feet, inches) {
|
||||
return Math.round((Number(feet) * 30.48) + (Number(inches) * 2.54));
|
||||
}
|
||||
|
||||
function heightToCm(height) {
|
||||
const [feet, inches] = height.match(/\d+/g);
|
||||
|
||||
return feetInchesToCm(feet, inches);
|
||||
}
|
||||
|
||||
function lbsToKg(lbs) {
|
||||
const pounds = lbs.toString().match(/\d+/)[0];
|
||||
|
||||
return Math.round(Number(pounds) * 0.453592);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
feetInchesToCm,
|
||||
heightToCm,
|
||||
lbsToKg,
|
||||
};
|
||||
Reference in New Issue
Block a user