wasm-bindgen/crates/js-sys/tests/wasm/JsString.js
2018-08-19 14:42:22 -04:00

8 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();
};
};