Javascript Reference
(Created page with "== Operators == == Global Objects == These are objects, functions or constructors that exists automatically in each script context. <div class="bullet"> </div><font clas...") |
|||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | == Operators == | + | == Keywords and Operators == |
== Global Objects == | == Global Objects == | ||
These are objects, functions or constructors that exists automatically in each script context. | These are objects, functions or constructors that exists automatically in each script context. | ||
− | + | * [[Javascript Global Functions#isNaN|isNaN()]] | |
− | + | Function that checks if its argument is Not A Number. | |
− | + | * [[Javascript Global Functions#parseInt|parseInt()]] | |
− | + | Function that parses a string to an integer in an arbitrary base. | |
− | + | * NaN | |
− | + | Static variable that is Not a Number. | |
− | + | * [[Javascript Math|Math]] | |
− | + | Static Math object. | |
+ | * [[Javascript Object|Object()]] | ||
+ | Constructor of an Object object. | ||
+ | * [[Javascript Array|Array()]] | ||
+ | Constructor of an Array object. | ||
+ | * [[Javascript Function|Function()]] | ||
+ | Constructor of a Function object. | ||
+ | * [[Javascript RegExp|RegExp()]] | ||
+ | Constructor of a Regular Expression object. | ||
+ | * [[Javascript Date|Date()]] | ||
+ | Constructor of a Date object. | ||
+ | * [[Javascript Message|Message()]] | ||
+ | Constructor of a Message object. | ||
+ | * [[Javascript XML|XML()]] | ||
+ | Constructor of an XML object. | ||
+ | * [[Javascript Hasher|Hasher]] | ||
+ | Constructor of a Hasher object. | ||
+ | * [[Javascript JSON|JSON]] | ||
+ | Static JSON parser object. | ||
+ | * [[Javascript JPath|JPath()]] | ||
+ | Constructor for JPath (JSON Path) object. | ||
+ | * [[Javascript DNS|DNS]] | ||
+ | Static DNS resolver object. | ||
+ | * [[Javascript Engine|Engine]] | ||
+ | Static Engine object. | ||
+ | * [[Javascript Shared|Shared]] | ||
+ | Global shared data. | ||
+ | * [[Javascript File|File]] | ||
+ | Static File object. | ||
+ | * [[Javascript ConfigFile|ConfigFile]] | ||
+ | Constructor of a ConfigFile object. | ||
+ | * [[Javascript ConfigSection|ConfigSection]] | ||
+ | Constructor of a ConfigSection object. | ||
+ | * [[Javascript Channel|Channel]] | ||
+ | Static Channel object (present only in routing scripts). | ||
== String Functions == | == String Functions == | ||
Yate's Javascript implementation does not include String or Number objects. Instead applicable methods are added to all kind of non-object values including those native to the Yate engine. | Yate's Javascript implementation does not include String or Number objects. Instead applicable methods are added to all kind of non-object values including those native to the Yate engine. | ||
− | + | ||
− | + | * [[Javascript Strings#length|length]] | |
+ | Property reflecting the length of a string. | ||
+ | |||
+ | * [[Javascript Strings#charAt|charAt()]] | ||
+ | Function that returns a character at a certain position in string. | ||
+ | |||
+ | * [[Javascript Strings#indexOf|indexOf()]] | ||
+ | Function that returns the position of a substring in another string. | ||
+ | |||
+ | * [[Javascript Strings#substr|substr()]] | ||
+ | Function that returns a substring. | ||
+ | |||
+ | * [[Javascript Strings#match|match()]] | ||
+ | Function that matches a string against a Regular Expression. | ||
+ | |||
+ | * [[Javascript Strings#toLowerCase|toLowerCase()]] | ||
+ | Function that converts a string to lower case. | ||
+ | |||
+ | * [[Javascript Strings#toUpperCase|toUpperCase()]] | ||
+ | Function that converts a string to upper case. | ||
+ | |||
+ | * [[Javascript Strings#trim|trim()]] | ||
+ | Function that removes leading and trailing spaces from a string. | ||
+ | |||
+ | * [[Javascript Strings#sqlEscape|sqlEscape()]] | ||
+ | Function that performs SQL escaping on a string. | ||
+ | |||
+ | * [[Javascript Strings#startsWith|startsWith()]] | ||
+ | Function that checks if a string starts with a specific substring. | ||
+ | |||
+ | * [[Javascript Strings#endsWith|endsWith()]] | ||
+ | Function that checks if a string ends with a specific substring. | ||
+ | |||
+ | * [[Javascript Strings#split|split()]] | ||
+ | Function that splits a string into an Array at a separator. | ||
+ | |||
+ | * [[Javascript Strings#toString|toString()]] | ||
+ | Function that converts a number to string using a specified numbering base. | ||
+ | |||
+ | [[Category:Javascript]] [[Category:Programmers]] |
Revision as of 13:28, 27 October 2021
Keywords and Operators
Global Objects
These are objects, functions or constructors that exists automatically in each script context.
Function that checks if its argument is Not A Number.
Function that parses a string to an integer in an arbitrary base.
- NaN
Static variable that is Not a Number.
Static Math object.
Constructor of an Object object.
Constructor of an Array object.
Constructor of a Function object.
Constructor of a Regular Expression object.
Constructor of a Date object.
Constructor of a Message object.
Constructor of an XML object.
Constructor of a Hasher object.
Static JSON parser object.
Constructor for JPath (JSON Path) object.
Static DNS resolver object.
Static Engine object.
Global shared data.
Static File object.
Constructor of a ConfigFile object.
Constructor of a ConfigSection object.
Static Channel object (present only in routing scripts).
String Functions
Yate's Javascript implementation does not include String or Number objects. Instead applicable methods are added to all kind of non-object values including those native to the Yate engine.
Property reflecting the length of a string.
Function that returns a character at a certain position in string.
Function that returns the position of a substring in another string.
Function that returns a substring.
Function that matches a string against a Regular Expression.
Function that converts a string to lower case.
Function that converts a string to upper case.
Function that removes leading and trailing spaces from a string.
Function that performs SQL escaping on a string.
Function that checks if a string starts with a specific substring.
Function that checks if a string ends with a specific substring.
Function that splits a string into an Array at a separator.
Function that converts a number to string using a specified numbering base.