JsString.js 222 B

1234567
  1. exports.new_string_object = () => new String("hi");
  2. exports.get_replacer_function = function() {
  3. return function upperToHyphenLower(match, offset, string) {
  4. return (offset > 0 ? '-' : '') + match.toLowerCase();
  5. };
  6. };