js-sys 0.2.7

Bindings for all JS global objects and functions in all JS environments like Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate.
1
2
3
4
5
6
7
exports.new_string_object = () => new String("hi");

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