mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 14:31:45 +03:00
8 lines
222 B
JavaScript
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();
|
|
};
|
|
};
|