⚙ Compilation target
ESNext
⚙ Library
ESNext
Missing / Incorrect Definition
Applies to both String.prototype.padStart and String.prototype.padEnd:
The name of the maxLength parameter suggests that's the maximum length of the returned string, when it's actually the minimum length of the returned string. MDN uses targetLength for the names of these parameters.
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd
⚙ Compilation target
ESNext
⚙ Library
ESNext
Missing / Incorrect Definition
Applies to both
String.prototype.padStartandString.prototype.padEnd:The name of the
maxLengthparameter suggests that's the maximum length of the returned string, when it's actually the minimum length of the returned string. MDN usestargetLengthfor the names of these parameters.Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd