oden/third-party/vendor/js-sys/tests/wasm/JsString.js
2024-03-08 11:03:01 -08:00

7 lines
222 B
JavaScript

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