• Randomly switch the case of characters generated by stringArb (upper/lower)

    WARNING: Require bigint support. Under-the-hood the arbitrary relies on bigint to compute the flags that should be toggled or not.

    Parameters

    • stringArb: Arbitrary<string>

      Arbitrary able to build string values

    • Optional constraints: MixedCaseConstraints

      Constraints to be applied when computing upper/lower case version

    Returns Arbitrary<string>

    Remarks

    Since 1.17.0