wasm_bindgen_shared::identifier

Function is_valid_ident

Source
pub fn is_valid_ident(name: &str) -> bool
Expand description

Returns whether a string is a valid JavaScript identifier. Defined at https://tc39.es/ecma262/#prod-IdentifierName.