step constant
String
const step
Produces discrete, stepped results by evaluating a piecewise-constant
function defined by pairs of input and output values ("stops"). The
input
may be any numeric expression (e.g., ["get", "population"]
).
Stop inputs must be numeric literals in strictly ascending order.
Returns the output value of the stop just less than the input, or the
first output if the input is less than the first stop.
Sdk Support: basic functionality with js, android, ios, macos
Implementation
static const step = "step";