Where to ask about a feature of JS API?

I would like for number to have a padStart() method, the same as string. Where would I post about this?

Example:

// current
var myNumber = 1;
var label = myNumber.toString().padStart(3, "0"); // 001

// proposed
var myNumber = 1;
var label = myNumber.padStart(3, "0"); // 001

That would be a language feature, but I'm not sure I see the benefit of adding Number.prototype.padStart vs douing .toString() or String(myNumber).padStart(3, '0')

Where do I post language features?

This is the correct place to propose language features. Then you'll have to see if any delegates are interested. To get delegates interested, it helps to explain why you would want something, and to compare it to what one has to write instead.

1 Like