Skip to content

Instantly share code, notes, and snippets.

View Bradcomp's full-sized avatar

Brad Compton (he/him) Bradcomp

View GitHub Profile
@davidchambers
davidchambers / comment.md
Created June 2, 2016 21:34
Quick introduction to chaining monads from a pull request review
var convertPercentage = function(percentage) {
  if (percentage == null) {
    return null;
  } else {
    return parseFloat(percentage.replace(/[^-\d.]/g, ''));
  }
};