Skip to main content

alike

Function alike 

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

Whether two values say the same thing.

Compared as values rather than as text, so that two encoders which write a number differently, or an object with its keys in another order, still agree. Floats are compared within whatever slack the suite allows, because two languages computing the same thing will not always land on the same bit.