(functionName: string, paramName: string, paramValue: unknown)
| 29 | * @export |
| 30 | */ |
| 31 | export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { |
| 32 | if (paramValue === null || paramValue === undefined) { |
| 33 | throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * |
no outgoing calls
no test coverage detected