# HG changeset patch # User Yaroslav Zhuravlev # Date 1533044565 -10800 # Node ID c34a885b9d994178a38acc9da266e3222996c3b1 # Parent 660229c5c92f9b1608d8cbaea75f59b179bf3aa9 Documented padEnd() and padStart() for njs. diff --git a/xml/en/docs/njs/njs_api.xml b/xml/en/docs/njs/njs_api.xml --- a/xml/en/docs/njs/njs_api.xml +++ b/xml/en/docs/njs/njs_api.xml @@ -9,7 +9,7 @@
+ rev="5">
@@ -207,6 +207,30 @@ ng +String.prototype.padEnd(length +[, string]) + +Returns a string of a specified length +with the pad string applied +to the end of the specified string (0.2.3). + +>> '1234'.padEnd(8, 'abcd') +'1234abcd' + + + +String.prototype.padStart(length +[, string]) + +Returns a string of a specified length +with the pad string applied +to the start of the specified string (0.2.3). + +>> '1234'.padStart(8, 'abcd') +'abcd1234' + + + String.prototype.repeat(number) Returns a string