String.prototype.padEnd

GPTKB entity

Properties (15)
Predicate Object
gptkbp:instanceOf Function
gptkbp:compatibleWith Supported in all modern browsers.
gptkbp:description Pads the current string with another string (repeated, if needed) so that the resulting string reaches a given length.
gptkbp:examples 'abc'.padEnd(10, ' ') returns 'abc '.
'abc'.padEnd(2, '0') returns 'abc'.
'abc'.padEnd(5, '0') returns 'abc00'.
'abc'.padEnd(5, 'xyz') returns 'abcxy'.
https://www.w3.org/2000/01/rdf-schema#label String.prototype.padEnd
gptkbp:inscription The string to pad the current string with.
gptkbp:language str.padEnd(targetLength, padString)
gptkbp:mandates ECMAScript 2017 (ES8)
gptkbp:respondsTo The padded string.
gptkbp:targets The length of the resulting string once the current string has been padded.
gptkbp:throws TypeError if padString is not a string.
TypeError_if_targetLength_is_not_a_number.