Skip to content

Instantly share code, notes, and snippets.

@rolandpeelen
Created July 22, 2018 18:55
Show Gist options
  • Select an option

  • Save rolandpeelen/db592c18cc78b21d9cb371d4455e3b56 to your computer and use it in GitHub Desktop.

Select an option

Save rolandpeelen/db592c18cc78b21d9cb371d4455e3b56 to your computer and use it in GitHub Desktop.
const asHours = (duration) => {
 const stepOne = msToHours(duration);
 const stepTwo = valueIf(overOne, stepOne);
 const stepThree = falseOr(Math.round(stepTwo));
 const stepFour = falseOr(PostFixHours(stepThree));
 return stepFour;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment