Constructor
new IEGeneralCompatibility()
Not actually a constructor as there are no instance methods; underlying definition is an empty object. Documented as a class for the purposes of this documentation generator only.
- Source:
Methods
(static) isNaN(val) → {boolean}
Adds compatibility for the Number.isNaN function.
Parameters:
| Name | Type | Description |
|---|---|---|
val |
* | Value to be tested. |
- Source:
Returns:
true if (and only if) val is NaN, otherwise false.
- Type
- boolean
(static) parseFloat(val) → {number}
Adds compatibility for the Number.parseFloat function. Added only for ECMA2015 modularization purposes;
simply falls back to the global parseFloat function if Number.parseFloat is not defined.
Parameters:
| Name | Type | Description |
|---|---|---|
val |
string | Value to be parsed. |
- Source:
Returns:
The floating point representation of the given val, or NaN if val cannot be parsed.
- Type
- number
(static) parseInt(val) → {number}
Adds compatibility for the Number.parseInt function. Added only for ECMA2015 modularization purposes;
simply falls back to the global parseInt function if Number.parseInt is not defined.
Parameters:
| Name | Type | Description |
|---|---|---|
val |
string | Value to be parsed. |
- Source:
Returns:
The integer representation of the given val, or NaN if val cannot be parsed.
- Type
- number