pub fn is_primitive(h: &JsHost, v: &Value) -> boolExpand 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.