Class: IsNaN

system.rules. IsNaN


new IsNaN( [value])

Evaluates if the condition is NaN.

Parameters:
Name Type Argument Default Description
value number <optional>
NaN

The value to evaluate.

Implements:
Example
var IsNaN = system.rules.IsNaN ;
trace( (new IsNaN( 0 )).eval() ) ; // false
trace( (new IsNaN( 1 )).eval() ) ; // false
trace( (new IsNaN( 'foo' )).eval() ) ; // false
trace( (new IsNaN( NaN )).eval() ) ; // true

trace( (new IsNaN( 0 , false )).eval() ) ; // false
trace( (new IsNaN( 1 , false )).eval() ) ; // false
trace( (new IsNaN( 'foo' , false )).eval() ) ; // true
trace( (new IsNaN( NaN , false)).eval() ) ; // true

Extends

Members


strict :boolean

The flag to indicates if the evaluation is strict (is NaN only) or not (test if the object is a Number and if not is NaN).

Type:
  • boolean
Default Value:
  • true

Methods


<static> IsNaN#eval()

Evaluates the specified object.


eval()

Evaluates the specified condition.

Inherited From:
Implements:

toString()

Returns the string representation of this instance.

Inherited From:
Implements:
Returns:

the string representation of this instance.