☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
js-sys
/
tests
/
wasm
/
JsString.js
☽
☼
.cargo/vendor/js-sys/tests/wasm/JsString.js
code
plain
raw
Apache-2.0-Expat
2014, Alex Crichton
debian/copyright
1
exports.new_string_object = () => new String("hi");
2
3
exports.get_replacer_function = function() {
4
return function upperToHyphenLower(match, offset, string) {
5
return (offset > 0 ? '-' : '') + match.toLowerCase();
6
};
7
};