is_non_value_js_keyword

Function is_non_value_js_keyword 

Source
pub fn is_non_value_js_keyword(keyword: &str) -> bool
Expand description

Returns whether the given string is a JS keyword that does NOT behave like a value.

Value-like keywords can be called like functions or have properties accessed, which makes it possible to use them in imports. In general, imports should use this function to check for reserved keywords.