Function percentTest

Returns test of value being in the range of 0-1. Equiv to number(value, percentage);

This is the same as calling number(t, `percentage`)

  • Parameters

    • value: number

      Value to check

    • parameterName: string = ...

      Param name for customising exception message

    Returns GuardResult