Provides methods for returning common symbolic values and objects, such as null, undefined, whitespace, object, array, and date. These methods can be used in a variety of contexts where it is necessary to represent these values or objects programmatically.

Invoked in mapping rules using {@symbol.<method>} syntax. Symbol methods take no parameters; they are called directly in the @pipe structure.

Constructors

Methods

  • Returns the current date and time as a Date object.

    Returns Date

    The current date and time

    set_date:
    "@pipe":
    - ["{@symbol.date}"]
    - ["{@json.stringify}"]
  • Returns the negative infinity value (-Infinity).

    Returns number

    Negative infinity

    set_neg_infinity:
    "@pipe":
    - ["{@symbol.negInfinity}"]
  • Returns the value null, representing a deliberate non-value.

    Returns null

    The null value

    set_null:
    "@pipe":
    - ["{@symbol.null}"]
  • Returns the positive infinity value (Infinity).

    Returns number

    Positive infinity

    set_pos_infinity:
    "@pipe":
    - ["{@symbol.posInfinity}"]
  • Returns the value undefined, representing a variable that has not been assigned a value.

    Returns undefined

    The undefined value

    set_undefined:
    "@pipe":
    - ["{@symbol.undefined}"]
  • Returns a single whitespace character as a string.

    Returns string

    A single space character

    set_whitespace:
    "@pipe":
    - ["{@symbol.whitespace}"]