Variable StringsConst

Strings: {
    codePointAt(string, index) => number;
    compare(x, y) => number;
    fromLike<T>(value) => string | Uninitable<T>;
    hash(x) => number;
    offsetByCodePoints(string, index, count) => number;
}

Utilities for comparing and hashing strings.

Type declaration

  • codePointAt:function
    • Parameters

      • string: string
      • index: number

      Returns number

  • compare:function
    • Returns the relative order of x with respect to y. Returns -1 if the string x lexicographically orders before the string y; returns 1 if the string x lexicographically orders after the string y; and returns 0 if x and y are equal strings. If either x or y is null or undefined, then strings order before null, and null orders before undefined.

      Parameters

      • x: string
      • y: string

      Returns number

  • fromLike:function
    • Type Parameters

      • T extends string | number | boolean

      Parameters

      • value: T

      Returns string | Uninitable<T>

  • hash:function
    • Returns a hash code for a string.

      Parameters

      • x: string

      Returns number

  • offsetByCodePoints:function
    • Parameters

      • string: string
      • index: number
      • count: number

      Returns number

Generated using TypeDoc