Mercurial > hg > nginx-site
changeset 2212:c34a885b9d99
Documented padEnd() and padStart() for njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 31 Jul 2018 16:42:45 +0300 |
parents | 660229c5c92f |
children | 821807549005 |
files | xml/en/docs/njs/njs_api.xml |
diffstat | 1 files changed, 25 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/njs/njs_api.xml +++ b/xml/en/docs/njs/njs_api.xml @@ -9,7 +9,7 @@ <article name="njs API" link="/en/docs/njs/njs_api.html" lang="en" - rev="4"> + rev="5"> <section id="summary"> @@ -207,6 +207,30 @@ ng </example> </tag-desc> +<tag-name id="string_padend"><literal>String.prototype.padEnd(<value>length</value> +[, <value>string</value>])</literal></tag-name> +<tag-desc> +Returns a string of a specified <literal>length</literal> +with the pad <literal>string</literal> applied +to the end of the specified string (0.2.3). +<example> +>> '1234'.padEnd(8, 'abcd') +'1234abcd' +</example> +</tag-desc> + +<tag-name id="string_padstart"><literal>String.prototype.padStart(<value>length</value> +[, <value>string</value>])</literal></tag-name> +<tag-desc> +Returns a string of a specified <literal>length</literal> +with the pad <literal>string</literal> applied +to the start of the specified string (0.2.3). +<example> +>> '1234'.padStart(8, 'abcd') +'abcd1234' +</example> +</tag-desc> + <tag-name><literal>String.prototype.repeat(<value>number</value>)</literal></tag-name> <tag-desc> Returns a string