Skip to main content

coerced_eq

Function coerced_eq 

Source
pub fn coerced_eq(a: &Value, b: &Value) -> bool
Expand description

Check equality with type coercion.

Handles "5" == 5 by coercing both sides to f64 when one is a number and the other is a numeric string.