Check if the given value is the given type If not, throw invalidParamType error

  • Parameters

    • value: any
    • type: string
    • paramName: string
    • functionName: string
    • throwOnError: boolean = true

    Returns boolean

    true/false