JS Lib
Overview
Generally available javascript constants / functions.
Returned Types
Boolean,String,Date,Number,Array,Function,IterableValue,Iterator,JSON,Map,Math,Namespace,QName,RegExp,Set,[Special Operators](./special operators.md),Statements,XML,XMLList,
Properties Summarized
Type | Name | Summary |
---|---|---|
Numeric value representing infinity. | ||
Value representing Not-a-Number. | ||
The value undefined. |
Methods Summarized
Type | Name | Summary |
---|---|---|
Decodes a URI previously encoded with encodeURI or another similar routine. | ||
Decodes a URI component previously created by encodeURIComponent or by a similar routine. | ||
Encodes a URI by replacing certain characters with escape sequences. | ||
Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences. | ||
Evaluates JavaScript code passed as a string. | ||
Returns true if the given number is a finite number. | ||
void | The NaN property indicates that a value is 'Not a Number'. | |
Returns true if the given name can be used as a valid name for an XML element or attribute. | ||
Makes a floating point number from the starting numbers in a given string. | ||
Makes a integer from the starting numbers in a given string in the base specified. | ||
Makes a integer from the starting numbers in a given string in the base specified. | ||
Returns the string representation behind a given object. |
Properties Detailed
Infinity
Numeric value representing infinity.
Type Number
Sample
NaN
Value representing Not-a-Number.
Type Number
Sample
undefined
The value undefined.
Type Object
Sample
Methods Detailed
decodeURI(encodedURI)
Decodes a URI previously encoded with encodeURI or another similar routine.
Parameters
String encodedURI ;
Returns: String
Sample
decodeURIComponent(encodedURI)
Decodes a URI component previously created by encodeURIComponent or by a similar routine.
Parameters
String encodedURI ;
Returns: String
Sample
encodeURI(URI)
Encodes a URI by replacing certain characters with escape sequences.
Parameters
String URI ;
Returns: String
Sample
encodeURIComponent(URI)
Encodes a URI component by replacing all special characters with their corresponding UTF-8 escape sequences.
Parameters
String URI ;
Returns: String
Sample
eval(expression)
Evaluates JavaScript code passed as a string. Returns the value returned by the evaluated code.
Parameters
String expression ;
Returns: Object
Sample
isFinite(n)
Returns true if the given number is a finite number.
Parameters
Number n ;
Returns: Boolean
Sample
isNaN(value)
The NaN property indicates that a value is 'Not a Number'.
Parameters
Object value ;
Returns: void
Sample
isXMLName(name)
Returns true if the given name can be used as a valid name for an XML element or attribute. This was implemented by the Rhino engine as part of Ecma-357 which was meanwhile withdrawn.
Parameters
String name ;
Returns: Boolean
Sample
parseFloat(text)
Makes a floating point number from the starting numbers in a given string.
Parameters
String text ;
Returns: Number
Sample
parseInt(text)
Makes a integer from the starting numbers in a given string in the base specified.
Parameters
String text ;
Returns: Number
Sample
parseInt(text, radix)
Makes a integer from the starting numbers in a given string in the base specified.
Parameters
Returns: Number
Sample
uneval(obj)
Returns the string representation behind a given object.
Parameters
Object obj ;
Returns: String
Sample
Last updated