Module helpers

Module helpers 

Source

Functionsยง

build_iso_date_string
Build ISO date string from NaiveDate
compare
Compare two values as numbers
create_option
Create option object from label and value
f64_to_json
Convert f64 to JSON number
get_var
OPTIMIZED: Fast variable access - paths are pre-normalized during compilation This method is now only used for legacy/fallback cases
get_var_layered
Get variable with layered context (primary first, then fallback)
is_key_missing
Check if key is missing (null or not present)
is_null_like
Check if value is null-like (Null, empty string, or NaN)
is_truthy
Check if value is truthy
loose_equal
JavaScript-like loose equality
normalize_ref_path
Use centralized path normalization for consistent $ref/var handling
parse_string_to_f64
Helper to parse string to f64 (empty string = 0.0)
scalar_hash_key
Generate scalar hash key for Value (used in In operations)
to_f64
Convert JSON value to f64
to_number
Legacy to_number for f64 (only used for Power operations)
to_string
Convert value to string