nerdamer.min(...args: ExpressionInput[]): Expression
Returns the minimum value from a set of expressions.
If all arguments can be compared numerically (or have assumed numeric values),
returns the smallest. Otherwise returns a symbolic
`min(...)`
node.
Parameters
| Name | Type | Description |
|---|
args | ExpressionInput[] | Two or more expressions to compare. |
Returns
Expression — The minimum value, or a symbolic `min(...)` node.
Examples
min(1, 3, 2).text() // "1"
min(-5, 0).text() // "-5"
min('x', 'y').text() // "min(x, y)"