Closed Richienb closed 6 months ago
If we are to adopt options object argument, I prefer the shorter min
and max
over the longer names because they would take longer to type without helping that much in readability.
The spec uses value
for arbitrary types: https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number-constructor-number-value
...and number
for numbers: https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number.isinteger
So, number
it is.
https://github.com/Richienb/proposal-math-clamp/pull/3#discussion_r1455316475
Meanwhile
val
/value
/num
/number
,min
/minimum
andmax
/maximum
are commonplace.