Skip to main content

is_primitive

Function is_primitive 

Source
pub fn is_primitive(h: &JsHost, v: &Value) -> bool
Expand description

Whether v is an ECMAScript primitive, i.e. ToPrimitive is the identity on it. undefined, null, booleans, numbers, strings, symbols and bigints qualify; every other heap cell (objects, arrays, functions, Map/Set, native-tagged instances) is an object and must be converted.