Statements (25)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb:JavaScript_method
|
| gptkbp:affiliatedWith |
gptkb:String.prototype
|
| gptkbp:category |
String manipulation
|
| gptkbp:defaultValueOfPadString |
|
| gptkbp:definedIn |
gptkb:ECMAScript_2017
|
| gptkbp:describes |
Pads the current string with another string (repeated, if needed) so that the resulting string reaches the given length.
|
| gptkbp:example |
'abc'.padStart(6) // ' abc'
'abc'.padStart(6, '123') // '123abc' |
| gptkbp:introducedIn |
gptkb:ES8
|
| gptkbp:isMutable |
false
|
| gptkbp:parameter |
padString
targetLength |
| gptkbp:result |
String
|
| gptkbp:staticMethod |
false
|
| gptkbp:supportedBy |
gptkb:Edge_15+
gptkb:Firefox_48+ gptkb:Node.js_8+ gptkb:Safari_10+ Chrome 57+ |
| gptkbp:throwsIf |
targetLength is less than string length
targetLength is negative targetLength is not a number |
| gptkbp:bfsParent |
gptkb:ES2017
|
| gptkbp:bfsLayer |
6
|
| https://www.w3.org/2000/01/rdf-schema#label |
String.prototype.padStart
|