diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-01-29 10:40:48 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-01-29 10:57:06 +0100 |
commit | b281a92594653d1fbb01ea31338430a901f4df3d (patch) | |
tree | 623c733b865e7a9e879216cb031cf346a654e551 /doc | |
parent | e1ae10659058e21dcd2bbb35bb5f6e4ddbd566a7 (diff) |
Doc: extensions to JavaScript built-ins
Change-Id: Ia19ed4f48e19c28a2a78d294d4671e3efaf32c9c
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/jsextensions/jsextensions-general.qdoc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/reference/jsextensions/jsextensions-general.qdoc b/doc/reference/jsextensions/jsextensions-general.qdoc index 2fc5436f6..b325eedfe 100644 --- a/doc/reference/jsextensions/jsextensions-general.qdoc +++ b/doc/reference/jsextensions/jsextensions-general.qdoc @@ -54,4 +54,19 @@ Returns the name of the operating system on which \QBS is running. \note Do not confuse this with the \c{qbs.targetOS} property, which represents the operating system on which the binaries produced by \QBS will run. + + + \section1 Extensions to JavaScript built-in objects + + \section2 \c{Array.contains(e)} + Returns \c{true} if the array contains the element \c{e}. Returns \c{false} otherwise. + + \section2 \c{String.contains(s)} + Returns \c{true} if the string contains the substring \c{s}. Returns \c{false} otherwise. + + \section2 \c{String.startsWith(s)} + Returns \c{true} if the string starts with the substring \c{s}. Returns \c{false} otherwise. + + \section2 \c{String.endsWith(s)} + Returns \c{true} if the string ends with the substring \c{s}. Returns \c{false} otherwise. */ |