wasm-bindgen/crates/js-sys/tests/wasm/JsString.js

8 lines
222 B
JavaScript
Raw Normal View History

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