Skip to main content

Module string

Module string 

Source
Expand description

String.prototype method evaluation.

Pure Rust implementations of JavaScript string methods. Input: &str + method name + args. Output: Option<JsValue>.

Functionsยง

call
Evaluate a string method call: "abc".method(args).
from_char_code
String.fromCharCode(...codes).
from_code_point
String.fromCodePoint(...codes).
property
String property access: .length, [index].