Function to_number

Source
pub fn to_number(value: &Value) -> Option<f64>
Expand description

Do our best to convert something into a number.

Should be pretty much equivalent to calling Number(value) in JS, returning None where that would return NaN.