src/index.js
function lineHeightScale(lineHeight, power, ratio, bases) {
  const baseHeight = lineHeight / modularScale(power, ratio, bases)
  let realHeight = baseHeight

  while (realHeight < 1) {
    realHeight += baseHeight
  }

  return realHeight
}
function lineHeightScale(lineHeight, power, ratio, bases) {
  const baseHeight = lineHeight / modularScale(power, ratio, bases)
  let realHeight = baseHeight

  while (realHeight < 1) {
    realHeight += baseHeight
  }

  return realHeight
}
function lineHeightScale ( lineHeight , power , ratio , bases ) { const baseHeight = lineHeight / modularScale ( power , ratio , bases ) let realHeight = baseHeight while ( realHeight < 1 ) { realHeight += baseHeight } return realHeight }
Calculate a unitless line height for a given modular scale.

@param {number} lineHeight The base, unitless line height.
@param {number} power The power of the modular scale value.
@param {number} ratio The modular scale ratio.
@param {Array} bases One or more modular scale bases.
@returns {number}
Calculate a unitless line height for a given modular scale .