code: function stripSuffix(suffix) {
      return function(s) {
        var idx = s.length - suffix.length;  // value may be negative
        return s.slice (idx) === suffix ? Just (s.slice (0, idx)) : Nothing;
      };
    }
docs: # stripSuffix :: String -> String -> Maybe String . . Returns Just the portion of the given string (the second argument) left . after removing the given suffix (the first argument) if the string ends . with the suffix; Nothing otherwise. . . See also [`stripPrefix`](#stripPrefix). . . ```javascript . > S.stripSuffix ('.md') ('README.md') . Just ('README') . . > S.stripSuffix ('.md') ('README') . Nothing . ```