Function compare

  • Compare two strings.

    Parameters

    • x: string

      a string

    • y: string

      another string

    Returns number

    x<y: -ve, x=y: 0, x>y: +ve

Generated using TypeDoc