ixfx
    Preparing search index...

    Function string

    • Returns a string of random letters and numbers of a given length.

      string();  // Random string of length 5
      string(4); // eg. `4afd`

      Parameters

      • lengthOrOptions: number | Readonly<{ length: number; source?: RandomSource }> = 5

        Length of random string, or options.

      Returns string

      Random string