Function generateRandomString

  • Generate a random string value

    Parameters

    • config: any = {}

      a list of parameters containing a number length (default : 10) and a string chars (default : abcde...) that define bounds on the generator.

    Returns string

    generateRandomString({ length: 3, chars: "abc"}); // -> "aca"