sindresorhus / math-clamp

Clamp a number
MIT License
14 stars 3 forks source link

Shorten options #9

Closed Richienb closed 10 months ago

Richienb commented 10 months ago

I think it's a massive hog of space to be calling them minimum and maximum. The shorter min and max say the exact same thing and are virtually no more confusing.

sindresorhus commented 10 months ago

Maybe it's a bit over the top in this specific case, but I just dread abbreviations in general. PR welcome to change it, although maximum and minimum should be preserved for backwards compatibility.