Function isPowerOfFour

  • returns true if the given value is a power of four

    Parameters

    • val: number

      number to test

    Returns boolean

    true if number is a power of four