Mapbox already asigns the colour black as a fallback output for out-of-range inputs, so why not leave the use decide which colour should that be?
["interpolate" | "interpolate-hcl" | "interpolate-lab" | "step",
interpolation: ["linear"] | ["exponential", base] | ["cubic-bezier", x1, y1, x2, y2 ], // if not discrete
input: number,
stop_output_0: OutputType,
stop_input_1: number, stop_output_1: OutputType,
stop_input_n: number, stop_output_n: OutputType,
...,
fallback: OutputType
]: OutputType
not only out of range, also null
Most helpful comment
not only out of range, also null