Module js_op

Source
Expand description

Implementations of JavaScript operators for JSON Values

Functionsยง

abstract_div
Do division
abstract_eq
Compare values in the JavaScript == style
abstract_gt
JS-style abstract gt
abstract_gte
Provide abstract >= comparisons
abstract_lt
Perform JS-style abstract less-than
abstract_lte
Provide abstract <= comparisons
abstract_max
Get the max of an array of values, performing abstract type conversion
abstract_min
Get the max of an array of values, performing abstract type conversion
abstract_minus
Do minus
abstract_mod
Do modulo
abstract_ne
Abstract inequality
abstract_plus
Do plus
parse_float
Attempt to parse a value into a float.
parse_float_add
Add values, parsing to floats first.
parse_float_mul
Multiply values, parsing to floats first
str_to_number
strict_eq
Perform JS-style strict equality
strict_ne
to_negative
Attempt to convert a value to a negative number
to_number
Do our best to convert something into a number.
to_string